Skip to content
Discussion options

You must be logged in to vote

I need trigger a event and move component manualy.

this.listenTo(model.components(), 'add remove reset', this.onChildsChange);

    onChildsChange(p1, p2, event) {
        clearTimeout(this._upr);
        this._upr = setTimeout(() => this.fixChildren(event), 100);
      }

and triggers after some time

      /**
       * Move component to  getChildrenContainer, after added
       */
      fixChildren(event) {
        // Angular ja foi inicializado
        if (this.el._ngElementStrategy) {
          var components = this.model.get('components');
          const container = this.getChildrenContainer();
          console.log('Insert at: ' + event.at);
          var newElement = components.mod…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ricardojlrufino
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant