Creating a component wrapper

2 posts, 1 answers
  1. mark
    mark avatar
    14 posts
    Member since:
    Jul 2014

    Posted 04 May Link to this post

    I am implementing a Treeview into the app. But first I need to create a wrapper. Is there a recommended way of creating Kendo components wrappers?


  2. Answer
    Svetlin avatar
    448 posts

    Posted 06 May Link to this post

    Hi Mark,

    In such cases we recommend the composition over inheritance approach where the wrapper component passes the required configuration options via @Input properties and the wrapped component communicates to its wrapper via @Outputs. Please check the following article from the official Angular documentation demonstrating how Angular components interact using the @Input and @Output decorators:

    Here is an example demonstrating a simple wrapper component using a single @Input:

    I hope the provided information helps. Please let us know in case any additional details are required for this case. Thank you.

    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top