Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add header and footer to Tree #1967

Closed
mertsincan opened this issue Apr 20, 2021 · 0 comments
Closed

Add header and footer to Tree #1967

mertsincan opened this issue Apr 20, 2021 · 0 comments
Assignees
Labels
Type: New Feature Issue contains a new feature or new component request
Milestone

Comments

@mertsincan
Copy link
Member

mertsincan commented Apr 20, 2021

Users can customize filter element or add elements to header or footer according to your needs.

    type HeaderTemplateType = React.ReactNode | ((options: HeaderTemplateOptions) => React.ReactNode);

    type FooterTemplateType = React.ReactNode | ((props: TreeProps) => React.ReactNode);

    interface HeaderTemplateOptions {
        filterContainerClassName: string;
        filterIconClasssName: string;
        filterInput: FilterInputOptions;
        filterElement: JSX.Element;
        element: JSX.Element;
        props: TreeProps;
    }

    interface FilterInputOptions {
        className: string;
        onKeyDown(event: React.KeyboardEvent<HTMLInputElement>): void;
        onChange(event: React.KeyboardEvent<HTMLInputElement>): void;
    }
@mertsincan mertsincan self-assigned this Apr 20, 2021
@mertsincan mertsincan added this to the 6.4.0 milestone Apr 20, 2021
@mertsincan mertsincan added the Type: New Feature Issue contains a new feature or new component request label Apr 20, 2021
@mertsincan mertsincan changed the title Add headerTemplate and FooterTemplate to Tree Add header and footer to Tree Apr 20, 2021
@mertsincan mertsincan modified the milestones: 6.4.0, 6.3.0 Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature Issue contains a new feature or new component request
Projects
None yet
Development

No branches or pull requests

1 participant