@minecraft
    正在准备搜索索引...

    接口 IListPaneViewControlPaneOptions

    interface IListPaneViewControlPaneOptions {
        actions?: ListViewControlAction[];
        filterFlags?: ListViewControlFilterFlags;
        filterTooltip?: LocalizedString;
        onActionClicked?: (id: string) => void;
        onFilterChanged?: (visibleSlotIds: string[]) => void;
        onShowOptionChanged?: (optionIndex: number) => void;
        renderInline?: boolean;
        showOptions?: { label: LocalizedString; value: number }[];
        sortOptions?: string[];
        visible?: boolean;
    }

    层级 (查看层级一览)

    索引

    Default actions

    Flags to determine visible filters. If undefined it will be All.

    filterTooltip?: LocalizedString

    Localization key for the tooltip displayed when hovering the filter icon. Leave undefined or empty to suppress the tooltip.

    onActionClicked?: (id: string) => void

    This function will be called whenever user clicks an action

    onFilterChanged?: (visibleSlotIds: string[]) => void

    This function will be called whenever the filter is changed by the user

    onShowOptionChanged?: (optionIndex: number) => void

    Called when the user selects an entry in the "Show" dropdown. Receives the zero-based option index from the provided showOptions.

    renderInline?: boolean

    When true, the view control renders inline at the bottom of the list element instead of in a footer.

    showOptions?: { label: LocalizedString; value: number }[]

    Labels for the "Show" dropdown. When provided, a dropdown is shown and onShowOptionChanged is called with the selected index whenever the user changes the selection.

    sortOptions?: string[]

    Built-in sort types and custom category IDs, in the order shown by the sort dropdown.

    visible?: boolean

    Initial visibility state. It undefined, it will be false.