contentbox.models.menu.providers

Class JSProvider

lucee.Component
    extended by contentbox.models.menu.providers.BaseProvider
      extended by contentbox.models.menu.providers.JSProvider
All Implemented Interfaces:
IMenuItemProvider

ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- Provider for JavaScript-type menu items

Class Attributes:
  • synchronized : false
  •  
  • accessors : true
  •  
  • persistent : false
  •  
    Constructor Summary
    init()
          Constructor.
    Method Summary
    string getAdminTemplate(any menuItem, struct options='[runtime expression]')
         Retrieves template for use in admin screens for this type of menu item provider.
    string getDisplayTemplate(any menuItem, struct options='[runtime expression]')
         Retrieves template for use in rendering menu item on the site.
     
    Methods inherited from class contentbox.models.menu.providers.BaseProvider
    getDescription, getEntityName, getIconClass, getName, getRenderer, getType, setDescription, setEntityName, setIconClass, setName, setRenderer, setType
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()

    Constructor


    Method Detail

    getAdminTemplate

    public string getAdminTemplate(any menuItem, struct options='[runtime expression]')

    Retrieves template for use in admin screens for this type of menu item provider

    Specified by:
    getAdminTemplate in interface IMenuItemProvider
    Parameters:
    menuItem - The menu item object
    options - Additional arguments to be used in the method

    getDisplayTemplate

    public string getDisplayTemplate(any menuItem, struct options='[runtime expression]')

    Retrieves template for use in rendering menu item on the site

    Specified by:
    getDisplayTemplate in interface IMenuItemProvider
    Parameters:
    menuItem - The menu item object
    options - Additional arguments to be used in the method