telerik / kendo-react-layout

Kendo UI Layout for React
Other
2 stars 2 forks source link

High-order component that bind array of objects to components #7

Open vladimirivanoviliev opened 8 years ago

vladimirivanoviliev commented 8 years ago

Implement higher-order component that maps flat array of items to components. This higher-order component should expect the items hierarchy as flat array of objects. Example:

[{id:1, title: "some title", parentId: null}, {id:2, title: "other title", parentId: 1}]

This component should support nested components / html inside the content and title properties of the items above.

Example implementation is available here: DataBoundPanelBar