Try our conversational search powered by Generative AI!

Custom Button on Gadget



I'm trying to add a button onto the bottom left hand side onto a custom gadget I have developed, this is where the action buttons are placed.

It's using a dojo class to do ajax call an mvc controller that send back a partial view. I've been looking at adding it through the postCreate function, but that is not working. 

I'm looking for a consistent look to other widgets in the content side bar.


publish button

Jun 23, 2015 11:09

link to image here

Jun 23, 2015 11:11

You need to implement the command pattern. Some information can be found here:

Your widget then needs to create an instance of that command and implement the epi/shell/command/_WidgetCommandProviderMixin. If you add the command to the commands property of the provider during startup then it will automatically be discovered and added to the UI.

We have an example component on GitHub that you can get inspiration from:

Jun 23, 2015 13:32
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.