jQWidgets Forums
Forum Replies Created
-
Author
-
February 13, 2016 at 3:43 pm in reply to: How to add a Tab dynamically? How to add a Tab dynamically? #81420
I’m trying to use jqx-create attribute and ng-repeat. Here is my html:
<jqx-tabs jqx-settings="tabsSettings" jqx-create="createTabs"> <ul> <li>Summary</li> <li ng-repeat="tab in tabsArray">{{tab.title}}</li> </ul> <div>Summary content</div> <div ng-repeat="tab in tabsArray">{{tab.content}}</div> </jqx-tabs>
Initially createTabs is false. and tabsArray is empty array. Then I’m using ajax and get list for tabsArray. When ajax is finished I set createTabs to true. But I get arert with text “Error: Invalid structure!”. First ng-repeat works! I have lots of li tags. But second ng-repeat does not work! I have only one div with text “Summary content”. Why?
February 13, 2016 at 2:53 pm in reply to: How to add a Tab dynamically? How to add a Tab dynamically? #81418Sounds and looks ugly. It looks like a hack, but I think there is no other way how to do it. If to use ng-repeat for generating tabs dynamically, it does not work. It is so strange and it means you can not use angular way.
Oh, I found the same problem on this forum. Here you can see it: http://www.jqwidgets.com/community/topic/jqxcolorpicker-in-grid/#post-68844
But I did not find a solution of this problem.Thanks for your reply, but I think I wrote my question not correctly, so I’ll try to explain one more time what I mean. Here is another example from official documentation: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtreegrid/#demos/jqxtreegrid/javascript-tree-grid-property-editor.htm
Click on “Color” cell to start editing. Now color picker popup is open. You can click on this popup but grid will not end editing, it is very good. But when I use my own color picker it has its own popup which is created inside <body> and when you click on this popup,
grid ends editing because you clicked outside of cell. Why in the example from documentation when you click on popup, grid does not end editing and when I use my own color picker and click on popup, grid ends editing? -
AuthorPosts