ControlsComponent
This component was written for the Visually JS demonstration applications. Out of the box this is "production ready", but it does assume that either you're including the visuallyjs.css stylesheet in your cascade, or you've pulled out the relevant styles from that stylesheet. Also note that the default prompt for users when they press the 'clear' button is in English, as are the button tooltips.
Properties
buttons?
optionalbuttons:ControlsComponentButtons=[]
Optional extra buttons to display in the component.
Input
clear?
optionalclear:boolean=true
Whether or not to show the clear model button. Defaults to true.
Input
clearMessage?
optionalclearMessage:string="Clear dataset?"
Message to show when the user clicks the clear model button.
Input
orientation?
optionalorientation:string="row"
Orientation of the component - "row" or "column"
Input
undoRedo?
optionalundoRedo:boolean=true
Whether or not to show undo/redo buttons. Defaults to true.
Input
zoomButtons?
optionalzoomButtons:boolean=false
Whether or not to show the zoom in/zoom out buttons. Defaults to false.
Input
zoomToExtents?
optionalzoomToExtents:boolean=true
Whether or not to show the zoom to extents button. Defaults to true.