AppBuilder & Third party libraries

Thread is closed for posting
2 posts, 1 answers
  1. Nedim
    Nedim avatar
    5 posts
    Member since:
    Feb 2015

    Posted 07 May 2015 Link to this post

    Hi there,
    I am using the AppBuilder (both in-browser, windows and VS - have access to all of these) to create a {N} app. 

    Trying to add a side-bar (drawer) like the one in your sample TelerikNEXT app, but it seems impossible. First, the SideBar widget in the sample app is only available as .ts and must be compiled to .js (I managed to do this with VS in the "cross-platform modules" solution).

    So I added the compiled .js files to the propper "side-bar" folder under "tns_modules" in my {N} app, all via AppBuilder in-browser client. And ofcourse my app crashes on first try with the following error:

    Error: Cannot create module ui/side-bar. ReferenceError: Can't find variable: TKSideDrawer. StackTrace: SideBar@/app/tns_modules/ui/side-bar/side-bar.js....

    I took a look innside side-bar.ios.ts and found this. This is the only usage of "TKSideDrawer" in the .ts files:
    declare var TKSideDrawer: any;
    ...
    this._ios = TKSideDrawer.alloc().initWithHostview(this._mainContentHost.ios);

    I presume that TKSideDrawer is a part of Telerik's iOS UI package? I do have access to this package, but have no idea how to import it into my app in via AppBuilder. Is this possible? Is there any other way to get a Drawer or Side-bar widget? 

    Thanks in advance.

  2. Answer
    Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 11 May 2015 Link to this post

    Hello,

    Currently you can add third party libraries using CLI only. This functionality will be available in AppBuilder when we finish our plug-in model.

    Regards,
    Vlad
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
Back to Top