import * as React from 'react'; import JqxCheckBox, { ICheckBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcheckbox'; import JqxTree, { ITreeProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtree'; export interface IState extends ITreeProps { checked: ICheckBoxProps['checked']; } class App extends React.PureComponent<{}, IState> { private myTree = React.createRef(); private home = React.createRef(); private solutions = React.createRef(); constructor(props: {}) { super(props); this.myCheckBoxOnChange = this.myCheckBoxOnChange.bind(this); this.state = { checked: true, hasThreeStates: true } } public componentDidMount(): void { this.myTree.current!.selectItem(this.home.current); this.myTree.current!.expandItem(this.solutions.current); this.myTree.current!.checkItem(this.solutions.current, true); this.myTree.current!.uncheckItem(document.querySelector('#manufacturing')); } public render() { const marginTop = { marginTop: '10px' }; return (
  • Home
  • Solutions
    • Education
    • Financial services
    • Government
    • Manufacturing
    • Solutions
      • Consumer photo and video
      • Mobile
      • Rich Internet applications
      • Technical communication
      • Training and eLearning
      • Web conferencing
    • All industries and solutions
  • Products
    • PC products
    • Mobile products
    • All products
  • Support
    • Support home
    • Customer Service
    • Knowledge base
    • Books
    • Training and certification
    • Support programs
    • Forums
    • Documentation
    • Updates
  • Communities
    • Designers
    • Developers
    • Educators and students
    • Partners
    • By resource
      • Labs
      • TV
      • Forums
      • Exchange
      • Blogs
      • Experience Design
  • Company
    • About Us
    • Press
    • Investor Relations
    • Corporate Affairs
    • Careers
    • Showcase
    • Events
    • Contact Us
    • Become an affiliate
Three Check States
); } private myCheckBoxOnChange(event: any): void { this.setState({ checked: event.args.checked, hasThreeStates: event.args.checked }); } } export default App;