|
| 1 | +import { PropertyGrid } from ".."; |
| 2 | +import { Button } from "../../button"; |
| 3 | +import { DropdownList } from "../../dropdownlist"; |
| 4 | +import { GridToolbar, GridContainer, GridContent, GridTable } from "../../grid"; |
| 5 | +import { Icon } from "../../icon"; |
| 6 | +import { TableTbody, TableRow, TableTd } from "../../table"; |
| 7 | +import { Textbox } from "../../textbox"; |
| 8 | + |
| 9 | +export const PropertyGridNormal = ({ content, ...other }: any) => ( |
| 10 | + <PropertyGrid |
| 11 | + style={{ height: "450px" }} |
| 12 | + toolbar={( |
| 13 | + <GridToolbar resizable> |
| 14 | + <Textbox prefix={<Icon icon="search" />} placeholder="Search..." /> |
| 15 | + <DropdownList value="Default Sort" /> |
| 16 | + <Button icon="categorize" /> |
| 17 | + <Button icon="info-circle" /> |
| 18 | + </GridToolbar> |
| 19 | + )} |
| 20 | + {...other} |
| 21 | + > |
| 22 | + <GridContainer> |
| 23 | + {content || |
| 24 | + <GridContent className="k-auto-scrollable"> |
| 25 | + <GridTable> |
| 26 | + <colgroup> |
| 27 | + <col style={{ width: "200px" }} /> |
| 28 | + <col style={{ width: "250px" }} /> |
| 29 | + </colgroup> |
| 30 | + <TableTbody> |
| 31 | + <TableRow> |
| 32 | + <TableTd> |
| 33 | + <Icon className="k-treelist-toggle" icon="none"></Icon> |
| 34 | + size |
| 35 | + </TableTd> |
| 36 | + <TableTd><b>medium</b></TableTd> |
| 37 | + </TableRow> |
| 38 | + <TableRow className="k-alt" alt> |
| 39 | + <TableTd> |
| 40 | + <Icon className="k-treelist-toggle" icon="none"></Icon> |
| 41 | + themeColor |
| 42 | + </TableTd> |
| 43 | + <TableTd><b>base</b></TableTd> |
| 44 | + </TableRow> |
| 45 | + <TableRow> |
| 46 | + <TableTd> |
| 47 | + <Icon className="k-treelist-toggle" icon="none"></Icon> |
| 48 | + fillMode |
| 49 | + </TableTd> |
| 50 | + <TableTd><b>solid</b></TableTd> |
| 51 | + </TableRow> |
| 52 | + <TableRow className="k-alt" alt> |
| 53 | + <TableTd> |
| 54 | + <Icon className="k-treelist-toggle" icon="none"></Icon> |
| 55 | + rounded |
| 56 | + </TableTd> |
| 57 | + <TableTd><b>medium</b></TableTd> |
| 58 | + </TableRow> |
| 59 | + <TableRow> |
| 60 | + <TableTd> |
| 61 | + <Icon className="k-treelist-toggle" icon="none"></Icon> |
| 62 | + icon |
| 63 | + </TableTd> |
| 64 | + <TableTd><Icon icon="star" /></TableTd> |
| 65 | + </TableRow> |
| 66 | + <TableRow className="k-alt" alt> |
| 67 | + <TableTd> |
| 68 | + <Icon className="k-treelist-toggle" icon="caret-alt-down"></Icon> |
| 69 | + font |
| 70 | + </TableTd> |
| 71 | + <TableTd>Roboto 400</TableTd> |
| 72 | + </TableRow> |
| 73 | + <TableRow> |
| 74 | + <TableTd> |
| 75 | + <Icon className="k-treelist-toggle" icon="none"></Icon> |
| 76 | + <Icon className="k-treelist-toggle" icon="none"></Icon> |
| 77 | + font-weight |
| 78 | + </TableTd> |
| 79 | + <TableTd><b>400</b></TableTd> |
| 80 | + </TableRow> |
| 81 | + <TableRow className="k-alt" alt> |
| 82 | + <TableTd> |
| 83 | + <Icon className="k-treelist-toggle" icon="none"></Icon> |
| 84 | + <Icon className="k-treelist-toggle" icon="none"></Icon> |
| 85 | + font-family |
| 86 | + </TableTd> |
| 87 | + <TableTd><b>Roboto</b></TableTd> |
| 88 | + </TableRow> |
| 89 | + <TableRow className="k-hidden k-bottom k-sticky k-footer-template"> |
| 90 | + <TableTd colspan="2"><span> </span></TableTd> |
| 91 | + </TableRow> |
| 92 | + </TableTbody> |
| 93 | + </GridTable> |
| 94 | + </GridContent> |
| 95 | + } |
| 96 | + </GridContainer> |
| 97 | + </PropertyGrid> |
| 98 | +); |
0 commit comments