Skip to content

Added events for Add, Remove and Initialized#26

Open
DarkSideOfMo0n wants to merge 6 commits intovpusher:masterfrom
DarkSideOfMo0n:master
Open

Added events for Add, Remove and Initialized#26
DarkSideOfMo0n wants to merge 6 commits intovpusher:masterfrom
DarkSideOfMo0n:master

Conversation

@DarkSideOfMo0n
Copy link
Contributor

I added some Custom Events for different purposes. They are all triggered by mutations of the grid children.

  • Add -> is triggered when children have been added
  • Remove ->is triggered when children have been removed
  • Initialized -> is triggered only once and called after the very first mutation of children has been made

I think its a good idea to let the parent component know that something happen. I guess Custom Event is the right approach since this is not invasiv and the parent component needs to subscribe to 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

Successfully merging this pull request may close these issues.

1 participant