0 votes
869 views
in Coach Views by (16.3k points)

1 Answer

0 votes
by (16.3k points)
Sometimes when you are creating a custom control you need to select all child Coach Views inside a content area and do something with them e.g. move them to a jquery control etc.

This can be done as follows
var subviews = this.context.element.querySelectorAll("#resizer-layout > div > div");

then you can do something with the child views

var rows = [];
                for (var i=0; i < subviews.length; i++){
                    rows.push({template:subviews[i].id, content: subviews[i].id});
                    if (i < subviews.length-1){
                    rows.push({view:"resizer"});
                    }

                }

Related questions

0 votes
0 answers 1.2k views
0 votes
0 answers 574 views
0 votes
1 answer 1.5k views
0 votes
1 answer 2.5k views
0 votes
1 answer 468 views
0 votes
1 answer 2.0k views
asked Nov 8, 2018 by BPM Tips Admin (21.6k points)
0 votes
1 answer 517 views
0 votes
0 answers 737 views
0 votes
0 answers 503 views
0 votes
0 answers 1.1k views
0 votes
1 answer 1.2k views
0 votes
1 answer 545 views
0 votes
1 answer 1.7k views

635 questions

495 answers

98 comments

2.9k users

Join BPM Community Discord Channel

Welcome to BPM Tips Q&A, Community wiki/forum where you can ask questions and receive answers from other IBM BPM experts and members of the community. Users with 2000 points will automatically be promoted to expert level.
Created by Dosvak LLC
Our Youtube Channel
...