-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(html): add grid-normal template
- Loading branch information
Showing
2 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
import { Grid, GridHeader, GridGroupingHeader ,GridContainer, GridContent, GridHeaderTable, GridHeaderCell, GridTable, GridPager } from '../../grid'; | ||
import { TableThead, TableTbody, TableRow, TableTd } from '../../table'; | ||
|
||
export const GridNormal = (props) => ( | ||
<Grid _renderAriaRoot | ||
pager={( <GridPager /> )} | ||
groupingHeader={( | ||
<GridGroupingHeader dropHint="Drag a column header and drop it here to group by that column" /> | ||
)} | ||
children={( | ||
<> | ||
<GridHeader> | ||
<div className="k-grid-header-wrap"> | ||
<GridHeaderTable> | ||
<colgroup> | ||
<col style={{ width: "240px" }} /> | ||
<col /> | ||
<col /> | ||
<col style={{ width: "150px" }} /> | ||
</colgroup> | ||
<TableThead> | ||
<TableRow> | ||
<GridHeaderCell columnTitle="Contact Name" /> | ||
<GridHeaderCell columnTitle="Contact Title" /> | ||
<GridHeaderCell columnTitle="Company Name" /> | ||
<GridHeaderCell columnTitle="Country" /> | ||
</TableRow> | ||
</TableThead> | ||
</GridHeaderTable> | ||
</div> | ||
</GridHeader> | ||
<GridContainer> | ||
<GridContent> | ||
<GridTable> | ||
<colgroup> | ||
<col style={{ width: "240px" }} /> | ||
<col /> | ||
<col /> | ||
<col style={{ width: "150px" }} /> | ||
</colgroup> | ||
<TableTbody> | ||
<TableRow> | ||
<TableTd>Maria Anders</TableTd> | ||
<TableTd>Sales Representative</TableTd> | ||
<TableTd>Alfreds Futterkiste</TableTd> | ||
<TableTd>Germany</TableTd> | ||
</TableRow> | ||
<TableRow className="k-alt" alt> | ||
<TableTd>Ana Trujillo</TableTd> | ||
<TableTd>Owner</TableTd> | ||
<TableTd>Anna Trujillo Emparedados y helados</TableTd> | ||
<TableTd>Mexico</TableTd> | ||
</TableRow> | ||
<TableRow> | ||
<TableTd>Thomas Hardy</TableTd> | ||
<TableTd>Sales Representative</TableTd> | ||
<TableTd>Around the Horn</TableTd> | ||
<TableTd>UK</TableTd> | ||
</TableRow> | ||
<TableRow className="k-alt" alt> | ||
<TableTd>Christina Berglund</TableTd> | ||
<TableTd>Office Administrator</TableTd> | ||
<TableTd>Berglunds snabbköp</TableTd> | ||
<TableTd>Sweden</TableTd> | ||
</TableRow> | ||
<TableRow> | ||
<TableTd>Martin Sommer</TableTd> | ||
<TableTd>Owner</TableTd> | ||
<TableTd>Bólido Comidas preparadas</TableTd> | ||
<TableTd>Spain</TableTd> | ||
</TableRow> | ||
</TableTbody> | ||
</GridTable> | ||
</GridContent> | ||
</GridContainer> | ||
</> | ||
)} | ||
{...props}> | ||
</Grid> | ||
); |