0 votes
71 views
in Coach Views by (15.1k points)

1 Answer

0 votes
by (15.1k 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 215 views
0 votes
0 answers 87 views
0 votes
1 answer 120 views
0 votes
1 answer 305 views
0 votes
1 answer 70 views
0 votes
1 answer 204 views
asked Nov 8, 2018 by BPM Tips Admin (21.5k points)
0 votes
1 answer 55 views
0 votes
0 answers 70 views
0 votes
0 answers 29 views
0 votes
0 answers 193 views
0 votes
1 answer 266 views
0 votes
1 answer 305 views
0 votes
2 answers 265 views

561 questions

466 answers

85 comments

1.7k users

Dosvak IBM BPM /BAW Products, Download Evaluation
Process & Performance Tools Process & Performance Tools
Code Analyzer Code Analyzer
UI Toolkit UI Toolkit
Integration Monitoring Integration Monitoring
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
...