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

AppBuilder & Third party libraries

1 Answer 82 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nedim
Top achievements
Rank 1
Nedim asked on 07 May 2015, 01:24 PM

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.

1 Answer, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 11 May 2015, 09:10 AM
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.

 
Tags
General Discussions
Asked by
Nedim
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or