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

    接口 ITagContainerPropertyItemOptions

    Optional properties for Tag Container property item

    interface ITagContainerPropertyItemOptions {
        enable?: boolean;
        onTagAdded?: (tag: string) => void;
        onTagRemoved?: (tag: string) => void;
        style?: PaneItemStyle;
        tags?: string[];
        tagsPool?: string[];
        title?: LocalizedString;
        variant?: TagContainerVariant;
        visible?: boolean;
    }

    层级 (查看层级一览)

    索引

    属性

    enable?: boolean

    Initial enabled state of property item. If undefined, it will default to true.

    onTagAdded?: (tag: string) => void

    This callback is called when a tag is added.

    onTagRemoved?: (tag: string) => void

    This callback is called when a tag is removed.

    Optional styling overrides for the item.

    tags?: string[]

    Initial tags for the container.

    tagsPool?: string[]

    Available tags pool to select from.

    Localized title of the property item.

    Visual variant of the tag container. If undefined, it will default to Inverted.

    visible?: boolean

    Initial visibility state of property item. If undefined, it will default to true.