Skip to content

Commit

Permalink
chore(html): add treelist html spec
Browse files Browse the repository at this point in the history
  • Loading branch information
epetrow committed Jan 24, 2024
1 parent 7162cc0 commit 4fb8086
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/html/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export * from './grid/index';
export * from './listview/index';
// export * from './spreadsheet/index';
// export * from './pivotgrid/index';
// export * from './treelist/index';
export * from './treelist/index';
export * from './filter/index';
export * from './filemanager/index';
export * from './taskboard/index';
Expand Down
1 change: 1 addition & 0 deletions packages/html/src/treelist/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './treelist.spec';
32 changes: 32 additions & 0 deletions packages/html/src/treelist/treelist.spec.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { classNames } from '../misc';
import { Grid, KendoGridProps } from '../grid';

const TREELIST_CLASSNAME = 'k-treelist';

const states = [];

const options = {};

const defaultProps = {};

export const TreeList = (
props: KendoGridProps &
React.HTMLAttributes<HTMLDivElement>
) => (
<Grid
{...props}
className={classNames(
TREELIST_CLASSNAME,
props.className
)}
>
{props.children}
</Grid>
);

TreeList.states = states;
TreeList.options = options;
TreeList.className = TREELIST_CLASSNAME;
TreeList.defaultProps = defaultProps;

export default TreeList;

0 comments on commit 4fb8086

Please sign in to comment.