Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RakeshImpinge opened this issue May 18, 2021 · 1 comment

Comments

@RakeshImpinge
Copy link

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!

@wtmoose
Copy link
Member

wtmoose commented Jun 6, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants