API

Interface IInspectable

Interface used to define custom inspectable properties. This interface is used by the inspector to display custom property grids

interface IInspectable {
    accept?: string;
    callback?: () => void;
    fileCallback?: (file: File) => void;
    label: string;
    max?: number;
    min?: number;
    options?: IInspectableOptions[];
    propertyName: string;
    step?: number;
    type: InspectableType;
}
Index
accept?: string

Gets the extensions to accept when using "FileButton" mode. The value should be a comma separated string with the list of extensions to accept e.g., ".jpg, .png, .tga, .dds, .env".

callback?: () => void

Gets the callback function when using "Button" mode

fileCallback?: (file: File) => void

Gets the callback function when using "FileButton" mode

label: string

Gets the label to display

max?: number

Gets the maximum value of the property when using in "slider" mode

min?: number

Gets the minimum value of the property when using in "slider" mode

Gets the list of options when using "Option" mode

propertyName: string

Gets the name of the property to edit

step?: number

Gets the setp to use when using in "slider" mode

Gets the type of the editor to use