import * as React from 'react'; import JqxButton from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxbuttons'; import JqxCheckBox from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcheckbox'; import JqxDocking, { IDockingProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdocking'; import JqxSlider from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxslider'; class App extends React.PureComponent<{}, IDockingProps> { private myDocking = React.createRef(); private collapseButtonsCheckbox = React.createRef(); private closeButtonsCheckbox = React.createRef(); private mySlider = React.createRef(); constructor(props: {}) { super(props); this.collapseButtonsCheckboxOnChange = this.collapseButtonsCheckboxOnChange.bind(this); this.closeButtonsCheckboxOnChange = this.closeButtonsCheckboxOnChange.bind(this); this.disabledCheckboxOnChange = this.disabledCheckboxOnChange.bind(this); this.moveButtonOnClick = this.moveButtonOnClick.bind(this); this.collapseButtonOnClick = this.collapseButtonOnClick.bind(this); this.expandButtonOnClick = this.expandButtonOnClick.bind(this); this.mySliderOnChange = this.mySliderOnChange.bind(this); this.state = { windowsOffset: 5 } } public componentDidMount() { this.myDocking.current!.setWindowPosition('window0', 100, 100); this.myDocking.current!.pinWindow('window1'); this.myDocking.current!.hideAllCloseButtons(); this.myDocking.current!.showAllCollapseButtons(); this.mySlider.current!.setOptions({ value: 5 }); } public render() { return (
AngularDock2
You cannot drop this object.
AngularDock1
You cannot drag this object.
AngularDock3
You can drag and drop this object.
AngularDock4
You can drag and drop this object.
Settings
Collapse Buttons Move AngularDock4 To Left Zone
Close Buttons Collapse AngularDock1
Disabled Expand AngularDock1
Windows Margin
); } private collapseButtonsCheckboxOnChange(): void { const checked = this.collapseButtonsCheckbox.current!.getOptions('checked'); if (checked) { this.myDocking.current!.showAllCollapseButtons(); } else { this.myDocking.current!.hideAllCollapseButtons(); } }; private closeButtonsCheckboxOnChange(): void { const checked = this.closeButtonsCheckbox.current!.getOptions('checked'); if (checked) { this.myDocking.current!.showAllCloseButtons(); } else { this.myDocking.current!.hideAllCloseButtons(); } }; private disabledCheckboxOnChange(): void { const disabled = this.myDocking.current!.getOptions('disabled') if (disabled) { this.myDocking.current!.enable(); } else { this.myDocking.current!.disable(); } }; private moveButtonOnClick(): void { this.myDocking.current!.move('window3', 0, 1); }; private collapseButtonOnClick(): void { this.myDocking.current!.collapseWindow('window1'); }; private expandButtonOnClick(): void { this.myDocking.current!.expandWindow('window1'); }; private mySliderOnChange(event: any): void { this.setState({ windowsOffset: event.args.value }); }; } export default App;