Interface IInspectable
interface IInspectable {
accept?: string;
callback?: () => void;
fileCallback?: (file: File) => void;
label: string;
max?: number;
min?: number;
options?: IInspectableOptions[];
propertyName: string;
step?: number;
type: InspectableType;
}
accept?: string;
callback?: () => void;
fileCallback?: (file: File) => void;
label: string;
max?: number;
min?: number;
options?: IInspectableOptions[];
propertyName: string;
step?: number;
type: InspectableType;
}
Properties
Optionalaccept
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".
Optionalcallback
callback?: () => void
Gets the callback function when using "Button" mode
Optionalfile Callback
fileCallback?: (file: File) => void
Gets the callback function when using "FileButton" mode
label
label: string
Gets the label to display
Optionalmax
max?: number
Gets the maximum value of the property when using in "slider" mode
Optionalmin
min?: number
Gets the minimum value of the property when using in "slider" mode
Optionaloptions
Gets the list of options when using "Option" mode
property Name
propertyName: string
Gets the name of the property to edit
Optionalstep
step?: number
Gets the setp to use when using in "slider" mode
type
Gets the type of the editor to use
Interface used to define custom inspectable properties. This interface is used by the inspector to display custom property grids
See
https://doc.babylonjs.com/toolsAndResources/inspector#extensibility