UNPKG

sccoreui

Version:

ui-sccore

35 lines (34 loc) 2.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const jsx_runtime_1 = require("react/jsx-runtime"); const treeDropdownSelect_1 = tslib_1.__importDefault(require("../../components/treeDropdownSelect/treeDropdownSelect")); const CustomTreeDropdownSelect = () => { const expandedKeys = ['1', '2', '3', '4', '5']; const treeData = [ { key: "0", moduleName: 'Installation', children: [ { key: "0-0", moduleName: 'Getting Started', url: 'https://reactjs.org/docs/getting-started.html' }, { key: "0-1", moduleName: 'Add React', url: 'https://reactjs.org/docs/add-react-to-a-website.html' }, { key: "0-2", moduleName: 'Create an App', url: 'https://reactjs.org/docs/create-a-new-react-app.html' }, { key: "0-3", moduleName: 'CDN Links', url: 'https://reactjs.org/docs/cdn-links.html' } ] }, { key: "1", moduleName: 'Main Concepts', children: [ { key: "1-0", moduleName: 'Hello World', url: 'https://reactjs.org/docs/hello-world.html' }, { key: "1-1", moduleName: 'Introducing JSX', url: 'https://reactjs.org/docs/introducing-jsx.html' }, { key: "1-2", moduleName: 'Rendering Elements', url: 'https://reactjs.org/docs/rendering-elements.html' }, { key: "1-3", moduleName: 'Components and Props', url: 'https://reactjs.org/docs/components-and-props.html' }, { key: "1-4", moduleName: 'State and LifeCycle', url: 'https://reactjs.org/docs/state-and-lifecycle.html' }, { key: "1-5", moduleName: 'Handling Events', url: 'https://reactjs.org/docs/handling-events.html' } ] } ]; return ((0, jsx_runtime_1.jsx)(treeDropdownSelect_1.default, { displayLabelName: "moduleName", treeData: treeData, expandedKeys: expandedKeys })); }; exports.default = CustomTreeDropdownSelect;