Trilium Frontend API
    Preparing search index...

    Interface ToolbarOptions

    Options passed to the module:ui/toolbar/toolbarview~ToolbarView#constructor of the toolbar.

    interface ToolbarOptions {
        isFloating?: boolean;
        shouldGroupWhenFull?: boolean;
    }
    Index

    Properties

    isFloating?: boolean

    This option should be enabled for toolbars in absolutely positioned containers without width restrictions to enable automatic module:ui/toolbar/toolbarview~ToolbarView#items grouping. When this option is set to true, the items will stop wrapping to the next line and together with module:ui/toolbar/toolbarview~ToolbarOptions#shouldGroupWhenFull, this will allow grouping them when there is not enough space in a single row.

    shouldGroupWhenFull?: boolean

    When set to true, the toolbar will automatically group module:ui/toolbar/toolbarview~ToolbarView#items that would normally wrap to the next line when there is not enough space to display them in a single row, for instance, if the parent container of the toolbar is narrow. For toolbars in absolutely positioned containers without width restrictions also the module:ui/toolbar/toolbarview~ToolbarOptions#isFloating option is required to be true.

    See also: module:ui/toolbar/toolbarview~ToolbarView#maxWidth.