Accessing exposed component properties via code?
If I was accessing a single component such as what is screeshot below, I would use the following code:
function showQuestion() { vmi.boolean('showquestion').value = true; }
function hideQuestion() { vmi.boolean('showquestion').value = false; }
function showOptions() {
vmi.boolean('showoption1').value = true;
vmi.boolean('showoption2').value = true;
vmi.boolean('showoption3').value = true;
}
function hideOptions() {
vmi.boolean('showoption1').value = false;
vmi.boolean('showoption2').value = false;
vmi.boolean('showoption3').value = false;
}But how can I access instances of component where I have exposed the property of the instance such as screenshot here:
Would the code to access the OptionComponents vm be something like
vmi.property_1_OfOptionComponent.boolean('showquestion').value = true;Feeling a bit stuck on this, any help would be great!