jQuery UI Widgets Forums Navigation NavigationBar, ToolBar, NavBar Why is jqxToolBar initTools called twice

This topic contains 1 reply, has 2 voices, and was last updated by  Martin 4 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Why is jqxToolBar initTools called twice #113516

    ajcs
    Participant

    It seems that initTools is called twice. Once with menuToolIninitialization=false and once with menuToolIninitialization=true.

    Why is this?

    Why is jqxToolBar initTools called twice #113558

    Martin
    Participant

    Hello ajcs,

    The initTools callback function is called twice for each tool. On the first call, the settings are applied to the tool as it appears in the toolbar. On the second call, the settings are applied to the tool when it is minimized. This allows the tool to appear differently in both cases if different settings are applied.
    If you wish to disable the minimization of a tool, return { minimizable: false } in initTools. If you wish the tool to be minimizable but not to appear in the minimize pop-up menu, return { menuTool: false }. In these cases, there will only be one call of initTools for this tool.

    Best Regards,
    Martin Yotov

    jQWidgets team
    https://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.