Just getting to grips with this cool framework and interested in adding in an extra feature into the default toolbar. I assume the toolbar is from the following:
@Edit.Toolbar(Content)
And the functions from which each item is defined is in the 'inpage.js' file which houses all the menu item actions (add, new, replace). But when I try the following (inside in 'image max 3.cshtml'):
@Edit.Toolbar(Content, actions: "edit,replace,color");
and have a new colour action created in 'inpage.js':
'color': {
title: "Toolbar.Sort",
iclass: "icon-sxc-table",
showOn: "edit",
addCondition: function (settings, modConfig) { return modConfig.isList && settings.useModuleList && settings.sortOrder !== -1; }
},
This however is not presenting anything to the screen for me. I assume I am missing something but my aim was to replicate the reorder feature action but instead have a modal popup colour palette in order to change the colour of the background of each indivudal 'Image(s) max 3. in a row' content type views.
Appreciate any and all help!
Thx