src/pyams_skin/interfaces/viewlet.py
changeset 69 a361355b55c7
parent 25 23d78e06822d
child 87 3d9fd0c2699c
equal deleted inserted replaced
68:fd8fb93e1b6a 69:a361355b55c7
   115 
   115 
   116     bg_color_class = TextLine(title="Shortcut CSS class")
   116     bg_color_class = TextLine(title="Shortcut CSS class")
   117 
   117 
   118     icon_class = TextLine(title="Shortcut icon class")
   118     icon_class = TextLine(title="Shortcut icon class")
   119 
   119 
   120     label = Attribute("Shortcut title")
   120     label = TextLine(title="Shortcut title")
   121 
   121 
   122     url = TextLine(title="Shortcut target URL")
   122     url = TextLine(title="Shortcut target URL")
   123 
   123 
   124     target = TextLine(title="Window target",
   124     target = TextLine(title="Window target",
   125                       required=False)
   125                       required=False)
   245     def get_url(self):
   245     def get_url(self):
   246         """Get menu target URL"""
   246         """Get menu target URL"""
   247 
   247 
   248 
   248 
   249 #
   249 #
       
   250 # Widget title extensions viewlet manager
       
   251 #
       
   252 
       
   253 class IWidgetTitleViewletManager(IViewletManager):
       
   254     """Widget title viewlet manager"""
       
   255 
       
   256 
       
   257 #
   250 # Toolbar viewlet manager
   258 # Toolbar viewlet manager
   251 #
   259 #
   252 
   260 
   253 class IToolbarViewletManager(IViewletManager):
   261 class IToolbarViewletManager(IViewletManager):
   254     """Toolbar viewlet manager"""
   262     """Toolbar viewlet manager"""
   316 
   324 
   317 class IContextActions(IViewletManager, IToolbarMenu):
   325 class IContextActions(IViewletManager, IToolbarMenu):
   318     """Context actions viewlet manager"""
   326     """Context actions viewlet manager"""
   319 
   327 
   320     css_class = TextLine(title="Button CSS class",
   328     css_class = TextLine(title="Button CSS class",
   321                          default='btn btn-xs btn-primary dropdown-toggle')
   329                          default='btn btn-xs btn-default dropdown-toggle')