import * as React from 'react'; import * as ReactDOM from 'react-dom'; import JqxDockingLayout, { IDockingLayoutProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdockinglayout'; import JqxTree from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtree'; class App extends React.PureComponent<{}, IDockingLayoutProps> { constructor(props: {}) { super(props); const layout: IDockingLayoutProps['layout'] = [ { items: [{ alignment: 'left', items: [{ contentContainer: 'ToolboxPanel', title: 'Toolbox', type: 'layoutPanel' }, { contentContainer: 'HelpPanel', title: 'Help', type: 'layoutPanel' }], type: 'autoHideGroup', unpinnedWidth: 200, width: 80 }, { items: [{ height: 400, items: [{ contentContainer: 'Document1Panel', title: 'Document 1', type: 'documentPanel', }, { contentContainer: 'Document2Panel', title: 'Document 2', type: 'documentPanel' }], minHeight: 200, type: 'documentGroup' }, { height: 200, items: [{ contentContainer: 'ErrorListPanel', title: 'Error List', type: 'layoutPanel' }], pinnedHeight: 30, type: 'tabbedGroup' }], orientation: 'vertical', type: 'layoutGroup', width: 500 }, { items: [ { contentContainer: 'SolutionExplorerPanel', initContent: () => { // initialize a jqxTree inside the Solution Explorer Panel const source = [{ expanded: true, icon: 'https://www.jqwidgets.com/react/images/earth.png', items: [ { expanded: true, icon: 'https://www.jqwidgets.com/react/images/folder.png', items: [{ icon: 'https://www.jqwidgets.com/react/images/nav1.png', label: 'jqx.base.css' }, { icon: 'https://www.jqwidgets.com/react/images/nav1.png', label: 'jqx.energyblue.css' }, { icon: 'https://www.jqwidgets.com/react/images/nav1.png', label: 'jqx.orange.css' }], label: 'css' }, { icon: 'https://www.jqwidgets.com/react/images/folder.png', items: [{ icon: 'https://www.jqwidgets.com/react/images/nav1.png', label: 'jqxcore.js' }, { icon: 'https://www.jqwidgets.com/react/images/nav1.png', label: 'jqxdata.js' }, { icon: 'https://www.jqwidgets.com/react/images/nav1.png', label: 'jqxgrid.js' }], label: 'scripts', }, { icon: 'https://www.jqwidgets.com/react/images/nav1.png', label: 'index.htm' }], label: 'Project', }]; ReactDOM.render(, document.querySelector('#treeContainer')); }, title: 'Solution Explorer', type: 'layoutPanel' }, { contentContainer: 'PropertiesPanel', title: 'Properties', type: 'layoutPanel' }], minWidth: 200, type: 'tabbedGroup', width: 220 }], orientation: 'horizontal', type: 'layoutGroup' }, { height: 300, items: [{ contentContainer: 'OutputPanel', selected: true, title: 'Output', type: 'layoutPanel' }], position: { x: 350, y: 250 }, type: 'floatGroup', width: 500 } ]; this.state = { layout } } public render() { return ( // @ts-ignore {/* The panel content divs can have a flat structure */} {/* autoHideGroup */}
List of tools
Help topics
{/* documentGroup */}
Document 1 content
Document 2 content
{/* bottom tabbedGroup */}
List of errors
{/* right tabbedGroup */}
List of properties
{/* floatGroup */}

Themes installation complete.

List of installed stylesheet files. Include at least one stylesheet Theme file and the images folder:

  • styles/jqx.base.css: Stylesheet for the base Theme. The jqx.base.css file should be always included in your project.
  • styles/jqx.arctic.css: Stylesheet for the Arctic Theme
  • styles/jqx.web.css: Stylesheet for the Web Theme
  • styles/jqx.bootstrap.css: Stylesheet for the Bootstrap Theme
  • styles/jqx.classic.css: Stylesheet for the Classic Theme
  • styles/jqx.darkblue.css: Stylesheet for the DarkBlue Theme
  • styles/jqx.energyblue.css: Stylesheet for the EnergyBlue Theme
  • styles/jqx.shinyblack.css: Stylesheet for the ShinyBlack Theme
  • styles/jqx.office.css: Stylesheet for the Office Theme
  • styles/jqx.metro.css: Stylesheet for the Metro Theme
  • styles/jqx.metrodark.css: Stylesheet for the Metro Dark Theme
  • styles/jqx.orange.css: Stylesheet for the Orange Theme
  • styles/jqx.summer.css: Stylesheet for the Summer Theme
  • styles/jqx.black.css: Stylesheet for the Black Theme
  • styles/jqx.fresh.css: Stylesheet for the Fresh Theme
  • styles/jqx.highcontrast.css: Stylesheet for the HighContrast Theme
  • styles/jqx.blackberry.css: Stylesheet for the Blackberry Theme
  • styles/jqx.android.css: Stylesheet for the Android Theme
  • styles/jqx.mobile.css: Stylesheet for the Mobile Theme
  • styles/jqx.windowsphone.css: Stylesheet for the Windows Phone Theme
  • styles/jqx.ui-darkness.css: Stylesheet for the UI Darkness Theme
  • styles/jqx.ui-lightness.css: Stylesheet for the UI Lightness Theme
  • styles/jqx.ui-le-frog.css: Stylesheet for the UI Le Frog Theme
  • styles/jqx.ui-overcast.css: Stylesheet for the UI Overcast Theme
  • styles/jqx.ui-redmond.css: Stylesheet for the UI Redmond Theme
  • styles/jqx.ui-smoothness.css: Stylesheet for the UI Smoothness Theme
  • styles/jqx.ui-start.css: Stylesheet for the UI Start Theme
  • styles/jqx.ui-sunny.css: Stylesheet for the UI Sunny Theme
  • styles/images: contains images referenced in the stylesheet files
); } } export default App;