Package io.keikai.ui

Class DropdownToolbarButton

  • All Implemented Interfaces:
    Serializable, org.zkoss.json.JSONAware

    public class DropdownToolbarButton
    extends ToolbarButton
    A dropdown toolbar button for the Spreadsheet component that contains a list of ToolbarButton.

    Most built-in buttons in AuxAction can be used in this dropdown button. However, some buttons, such as AuxAction.FONT_FAMILY, cannot be used due to limitations. Specifically, the ZK Menupopup client-side widget cannot contain a Combobox widget. To work around this, you can use DropdownToolbarButton.Builder.withTemplateURI(String) for full customization with a JavaScript solution to control the client-side behavior.

    Note: the tooltip of the nested ToolbarButton is not supported for inside the dropdown list.

    Since:
    6.1.0
    Author:
    jumperchen
    See Also:
    Serialized Form
    • Method Detail

      • getItems

        public ToolbarButton[] getItems()
        Returns the items of the dropdown button.
        Returns:
      • toJSONString

        public String toJSONString()
        Specified by:
        toJSONString in interface org.zkoss.json.JSONAware
        Overrides:
        toJSONString in class ToolbarButton