ControlsComponentProps
Props for the ControlsComponent
Properties
className?
optionalclassName:string
Optional class name(s) to attach to the component's container element.
clear?
optionalclear:boolean
Defaults to true. Whether or not to show the 'clear dataset' button.
clearMessage?
optionalclearMessage:string
Optional message to use when the user presses the clear button. Defaults to 'Clear dataset?'.
onMaybeClear?
optionalonMaybeClear:Function
A function to use instead of the browser's default prompt when the user presses the clear button.
orientation
orientation:
"row"|"column"
Defaults to 'row' - whether to show buttons in a row or a column
surfaceId?
optionalsurfaceId:string
ID of the surface to attach to. Optional, a default will be used if not provided.
undoRedo?
optionalundoRedo:boolean
Defaults to true, meaning show the undo/redo buttons.
zoomButtons?
optionalzoomButtons:boolean
Defaults to false, meaning the zoom in/zoom out buttons are not shown by default.
zoomToExtents?
optionalzoomToExtents:boolean
Defaults to true, meaning the 'zoom to extents' button will be shown.