InspectorComponentProps
Extends
DOMAttributes<HTMLDivElement>
Properties
autoCommit?
optionalautoCommit:boolean
Whether or not to auto commit changes on blur or enter keypress. Defaults to true.
className?
optionalclassName:string
Optional class name to set on the component's root element.
current?
optionalcurrent:Base|null
A $state ref that the inspector will apply 2-way binding to. Since 1.2.0 this is the preferred way to use an inspector, as it reduces the amount of boilerplate you need to configure.
Since
1.2.0
filter()?
optionalfilter: (obj) =>boolean
Optional filter function that you can supply if you want to ignore certain objects in your dataset.
Parameters
obj
Base
Returns
boolean
multipleSelections?
optionalmultipleSelections:boolean
Whether or not to allow multiple objects to be selected and edited at once. Defaults to false.
refresh()?
optionalrefresh: (obj) =>void
Callback invoked when a new object has started to be edited.
Parameters
obj
Base
Returns
void
Deprecated
From 1.2.0 onwards, use the current state object approach instead.
style?
optionalstyle:string
Optional style to set on the component's root element.