Added toolbar action item interface
authorThierry Florac <thierry.florac@onf.fr>
Wed, 12 Jul 2017 13:47:25 +0200
changeset 190 4945c9b1202e
parent 189 7be4801ae463
child 191 03aae24b8ea6
Added toolbar action item interface
src/pyams_skin/interfaces/viewlet.py
--- a/src/pyams_skin/interfaces/viewlet.py	Wed Jul 12 13:46:19 2017 +0200
+++ b/src/pyams_skin/interfaces/viewlet.py	Wed Jul 12 13:47:25 2017 +0200
@@ -330,7 +330,7 @@
     """Toolbar actions menu"""
 
     label_css_class = TextLine(title="Label icon CSS class",
-                               default='fa fa-fw fa-caret-down')
+                               default='fa fa-plus')
 
     css_class = TextLine(title="Button CSS class",
                          default='btn btn-xs btn-primary dropdown-toggle')
@@ -347,8 +347,8 @@
     """Table item actions viewlet manager"""
 
 
-class IToolbarMenuItem(IToolbarAction):
-    """Toolbar actions menu item"""
+class IToolbarActionItem(IToolbarAction):
+    """Toolbar action menu item"""
 
     css_class = TextLine(title="Menu CSS class",
                          default='')
@@ -358,6 +358,10 @@
                             default=False)
 
 
+class IToolbarMenuItem(IToolbarActionItem):
+    """Toolbar menu item"""
+
+
 class IContextActions(IViewletManager, IToolbarMenu):
     """Context actions viewlet manager"""