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 headerTemplate property to Panel #1858

Closed
mertsincan opened this issue Mar 9, 2021 · 0 comments
Closed

Add headerTemplate property to Panel #1858

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

Comments

@mertsincan
Copy link
Member

Header template of the panel to customize more.

template: (options) => {
    // options.className: Style class of the default header element.
    // options.titleClassName: Style class of the title element.
    // options.iconsClassName: Style class of the icons wrapper element.
    // options.togglerClassName: Style class of the toggler element.
    // options.togglerIconClassName: Style class of the toggler icon element.
    // options.onTogglerClick: Click event for the toggler element.
    // options.titleElement: Default title element created by the component.
    // options.iconsElement: Default icons wrapper element created by the component.
    // options.togglerElement: Default toggler element created by the component.
    // options.element: Default element created by the component.
    // options.props: component props.
    // options.collapsed: Whether the panel is collapsed.
}

<Panel headerTemplate={template} .../>
@mertsincan mertsincan added the Type: New Feature Issue contains a new feature or new component request label Mar 9, 2021
@mertsincan mertsincan added this to the 6.1.0 milestone Mar 9, 2021
@mertsincan mertsincan self-assigned this Mar 9, 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