Class MenuIcon

Define a MenuIcon block to be displayed into a JBlocks.

Class Summary
Constructor Attributes Constructor Name and Description
 

A MenuIcon block displays a small non-expandable 1x1 image that opens or closes a Menu block when clicked.

Method Summary

Class Detail

MenuIcon()

A MenuIcon block displays a small non-expandable 1x1 image that opens or closes a Menu block when clicked.

The constructor should not be invoked directly but JBlocks#newBlock or JBlocks#addNewBlock should be used instead.

Method Detail

  • init(layout, options)
    Initializes a MenuIcon block. The method is invoked by the jBlocks core and must never be called directly.
    Parameters:
    {Object} layout Optional
    see Block#init.
    {Object} options Optional
    in addition to base class options Icon#init:
    {Array} options.menuItems Optional
    menu items associated with the MenuIcon block, as specified in Menu#init.