i2 Notebook SDK
Search results for

    Show/hide table of contents

    Home > @i2analyze/notebook-sdk > commands > IStandardGroup > type

    commands.IStandardGroup.type property

    Gets the render type of the group.

    Signature:

    readonly type?: 'expanded' | 'collapsed' | 'stacked';
    

    Returns: 'expanded' | 'collapsed' | 'stacked'

    Introduced: version 1.9

    Remarks

    Use this property to explicitly control how the group is presented in the user interface. The options are: - 'expanded' - shows all commands inline (default) - 'collapsed' - shows the group as a single icon/label button that opens a dropdown - 'stacked' - renders the group's children as a vertical column of small (icon + label) buttons that expand inline in the ribbon. A stacked group behaves like an 'expanded' group but with a compact visual layout; it can collapse under overflow pressure. In popup menus the children render as normal menu items below the group's section-header label.

    For a split button that has a primary command, use commands.ICommandGroup (type: 'command'). If type is specified it takes precedence over the deprecated commands.IGroupBase.isCollapsed boolean.

    In this article
    Back to top © N. Harris Computer Corporation