TLIndexPathTools icon indicating copy to clipboard operation
TLIndexPathTools copied to clipboard

Drawback in case of adding dynamic data from API in multilevel expandable tableview/accordion

Open RakeshImpinge opened this issue 4 years ago • 1 comments

Hello there!

I really found your library very helpful but I'm facing issues to pass dynamic data to the tableview sections, child items for expandable view as shown in example i.e. Outline

I checked that the code is being set according to static data for now. Is there any way to add dynamic data from API in form of JSON.

If I have an dynamic length of array, how can I specify the values is similar case as it is used for static data shown below:

TLIndexPathTreeItem *item1 = [self itemWithId:ITEM_1 level:0 children:childItems]; self.treeItems = @[item1, item2];

Any suggestions will be appreciated :) Thanks in advance!

RakeshImpinge avatar May 18 '21 12:05 RakeshImpinge

Sorry for not responding to this sooner, but I was very busy with work. I’m not entirely sure I understand your issue, but it sounds like you need to build up your items array in a loop of some kind. I suggest that you post questions like this on StackOverflow. It is a better forum for getting help with basic programming questions like this.

wtmoose avatar Jun 06 '21 17:06 wtmoose