This is a migrated thread and some comments may be shown as answers.

Provide an example of the children in Drawer component

5 Answers 749 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vinod
Top achievements
Rank 1
Vinod asked on 04 Feb 2020, 08:13 AM

Hi, 

Please provide an example of the Drawer component having children props set

Thanks 

5 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 04 Feb 2020, 10:30 AM

Hello, Tony,

This can be done, by rendering the elements directly inside the DrawerNavigation component:

https://www.telerik.com/kendo-react-ui/components/layout/api/DrawerNavigation/

Please let me know if you need more information on this matter.

Regards,
Stefan
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Vinod
Top achievements
Rank 1
answered on 04 Feb 2020, 11:35 AM

Stefan, 

I should be able to pass JSON having children props and render it on Drawer. 

const items = [
    { text: 'Inbox', icon: 'k-i-inbox', selected: true , route: '/', children: [{
{ text: 'Inbox', icon: 'k-i-inbox', selected: true , route: '/', children: [] },
{ text: 'Inbox', icon: 'k-i-inbox', selected: true , route: '/', children: [] },
{ text: 'Inbox', icon: 'k-i-inbox', selected: true , route: '/' , children: []}
}] },
    { separator: true },
    { text: 'Notifications', icon: 'k-i-bell', route: '/notifications', children: [] },
    { text: 'Calendar', icon: 'k-i-calendar', route: '/calendar', children: [] }
];

 

Could you provide an example working with above JSON. 

0
Stefan
Telerik team
answered on 05 Feb 2020, 08:44 AM

Hello, Tony,

Thank you for the clarification.

The children property in the API refers to the children element/s of a component which is a commonly used word in React:

https://reactjs.org/docs/composition-vs-inheritance.html

Where based on the provided code, it seems you are looking to a property that will make the Drawer renders hierarchical elements. This is something the team is working on and I can suggest monitoring this item for updates:

https://feedback.telerik.com/kendo-react-ui/1450862-kendoreact-drawer-component

Regards,
Stefan
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Vinod
Top achievements
Rank 1
answered on 17 Feb 2020, 06:18 AM

Hi Stefan, 

Please let us know the progress you make on getting the Hierarchical data rendered on the Drawer component using the 'children' property. 

 

Thanks, Vinod

0
Stefan
Telerik team
answered on 17 Feb 2020, 08:09 AM

Hello, Vinod,

This is already available in the dev channel.

Please take a look at the documentation for it

https://www.telerik.com/kendo-react-ui-develop/components/layout/drawer/custom_rendering/#toc-hierarchical-drawer

Regards,
Stefan
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Vinod
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Vinod
Top achievements
Rank 1
Share this question
or