jQWidgets Forums
jQuery UI Widgets › Forums › Angular › Angular 2 Tab and Treeview component
This topic contains 8 replies, has 2 voices, and was last updated by Ivo Zhulev 8 years, 5 months ago.
-
Author
-
Hello Peter Stoev,
How to add Tab and Tabpage and Node and Items dynamically in angular 2 Tab and Treeview component?
Thanks.Hello Peter Stoev,
Where we can find the angular 2 component widgets documentation?
Thanks.
Hi junior,
The documentation can be found in the documentation tab:
http://www.jqwidgets.com/jquery-widgets-documentation/documentation/angular2/angular2.htmYou can add Tabs with one the following jqxTabs properties:
addAt
addFirst
addLast
.Best Regards,
IvojQWidgets Team
http://www.jqwidgets.com/Hi Ivo Zhulev,
Can you show me an example of how to use addAt, addFirst and addLast? I don’t see a demo or in a documentation of how to use those methods using angular 2.
Thanks.
Hi Ivo Zhulev,
Is angular_jqxdataAdapter is functional in angular 2 and it has the same functionality with query jqxdataAdapter?
Thanks.Hi junior,
Use jqxDataAdapter the normal way like in the jQuery demos:
dataAdapter = new $.jqx.dataAdapter(source);
The documentation I gave you is about Angular2.
About the widget you can find it in the same section or in the demos section.Go to Demo => jqxTabs => Default Functionality => API Reference
There you will find all jqxTabs props, methods, events.
Best Regards,
IvojQWidgets Team
http://www.jqwidgets.com/Hi Ivo Zhulev,
By looking at this method of angular_jqxtabs you can see there is a “content” parameter of type string and as what I understand it is ‘html element’ mentioned in documentation. So, my question is how to implement that “content” using ‘html element’ format like for example I have a html file Form with lots inputs and validations inside and I will use it to be displayed in a tabpage?
addAt(index: number, title: string, content: string): void {
this.host.jqxTabs(‘addAt’, index, title, content);
}About the angular_jqxdataAdapter what is the use of still putting it in angular 2?
Thanks.
Hi Ivo Zhulev,
Can we have this additional feature in angular_jqxtabs in angular 2 addAt(index: number, title: string, content: string): void {
this.host.jqxTabs(‘addAt’, index, title, content);
Instead of only content: string parameter can you add an additional parameter like content:HTMLFile in a tab method?
Thanks.Hi junior,
You must be able to add any html through the
content
argument.Just get the html you need, assign it to a variable and then set the variable as the
content
argument.Best Regards,
IvojQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.