Skip to content

Add a list component to add items without transfering the whole data. #36

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

Closed
T4rk1n opened this issue Nov 29, 2019 · 0 comments · Fixed by #45
Closed

Add a list component to add items without transfering the whole data. #36

T4rk1n opened this issue Nov 29, 2019 · 0 comments · Fixed by #45
Assignees
Labels
component Component related issue core Core component package

Comments

@T4rk1n
Copy link
Owner

T4rk1n commented Nov 29, 2019

If you have a list of items to render and you just want to add an item on the fly you currently require to have the list of initial components and append the new element to the list and send it back.

Operations on items:

  • append: Add an item to the end of the list.
  • prepend: Add an item to the start of the list.
  • concat: Concatenate another list with the current items.
  • insert: Insert an item at an index position.
  • delete: Delete an item at the index.

Also have a max_size aspect, when adding items it pops extra items either from the back or front depending on the insertion position.

@T4rk1n T4rk1n added component Component related issue core Core component package labels Nov 29, 2019
@T4rk1n T4rk1n self-assigned this Dec 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component Component related issue core Core component package
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant