接口 INumberPropertyItem实验性

A property item which supports Number properties

interface INumberPropertyItem {
    enable: boolean;
    id: string;
    paneId: string;
    typeName: PropertyItemType;
    value: number;
    visible: boolean;
    setTitle(title: LocalizedString): void;
    setTooltip(tooltip: LocalizedString): void;
    updateLimits(limits: {
        max?: number;
        min?: number;
    }): void;
}

层级 (查看完整内容)

属性

enable: boolean

If the item is enabled in the UI.

id: string

Unique ID for the property item.

paneId: string

The parent pane id.

The type name of the target property.

value: number

Current value of the property item.

visible: boolean

If the item should be visible in the UI.

方法

  • 实验性

    参数

    • limits: {
          max?: number;
          min?: number;
      }
      • 可选max?: number
      • 可选min?: number

    返回 void

    Updates number limits and clamps the current value.