class ConfirmDialog extends Module{
//...}
class CheckboxItem extends Module {
static content = {
label { $(".tree-title").text() }
checkbox { $(".tree-checkbox")}
isChecked { $(".tree-checkbox1")}
}
}
class CheckboxList extends ConfirmDialog {
static content = {
items { moduleList(CheckboxItem)}
}
}
I instantiate CheckboxList like so:
def someSelExpr = /* some selector */
$(someSelExpr).module(CheckboxList)
I want the base for the moduleList to be the same as CheckboxList's (I.E. that the $() selectors in CheckboxItem shall be confined to the subtree rooted at someSelExpr)
Is that how this will work? If not, how do I bend it so that it does?
Thanks!