ControlsComponentProps
Props for the controls component.
Properties
buttons?
optionalbuttons:ControlsComponentButtons
Optional extra buttons to add to the controls component.
className?
optionalclassName:string
Optional class name to append to the root element's class list.
clear?
optionalclear:boolean
Whether or not to show the clear button, defaults to true.
clearMessage?
optionalclearMessage:string
Optional message for the alert that the clear button shows by default. Defaults to Clear dataset?.
onMaybeClear()?
optionalonMaybeClear: (doClear) =>void
Optional callback to invoke when the user presses the clear button. If you provide this, the component will not show an alert, and instead call this method, passing in a function you can invoke if you wish to continue with the clear operation.
Parameters
doClear
() => void
Returns
void
orientation?
optionalorientation:"row"|"column"
Optional orientation for the controls. Defaults to 'row'.
style?
optionalstyle:Record<string,string>
Optional style object to apply to the container element.
surfaceId?
optionalsurfaceId:string
The ID of surface to attach to. Optional. Will be inferred from context if not provided.
undoRedo?
optionalundoRedo:boolean
Whether or not to show undo/redo buttons, defaults to true
zoomButtons?
optionalzoomButtons:boolean
Whether or not to show the zoom in/zoom out buttons, defaults to false
zoomToExtents?
optionalzoomToExtents:boolean
Whether or not to show the zoom to extents button, defaults to true