Skip to main content
December 9, 2024
Question

How delete a card from a list of cards

  • December 9, 2024
  • 5 replies
  • 0 views

Here now If I click on the delete icon, then it should disappear from the list. How achieve this ? The child component is cardlayout.

5 replies

somasundaram.d
December 9, 2024

Not sure how you have implemented it, but if you are using foreach() you can use remove() function to remove the particular item using fv!index or fv!item the list upon which the UI is iterating.

December 9, 2024

The implementation is very simple on the parent component iterate the foreach and build the child component. Now the delete button is on the child component on click of the delete button how to remove the item from the list that uses in for-each in the parent component.

stefanhelzle0001
December 9, 2024

You will have to pass the data into the child component using a rule input. Then you can manipulate the data living in the parent component from the child.

Blog post: appian.rocks/.../

prasantap0900
December 9, 2024

Can you please tell me what you want to delete?