So, I have following code in my Tridion Extension for ComponentView window:
$evt.addEventHandler(view.properties.controls.fieldBuilder, "load", function () {
var field = this.getField("keyword_field");
console.log(field.getElement().innerHTML);
});
and console shows something like that:
<div>
<div class="keywordselect">
<div class="content"></div>
<div class="buttons" style="visibility: hidden;">
<div class="button add" id="buttonAdd" title="Add" style="-webkit-user-select: none;">
<span class="text"> </span>
</div>
</div>
</div>
</div>
so I can't see select content which load later:
<div>
<div>
<div class="keywordselect">
<div class="content">
<select size="5" multiple="true">
<option value="value">value</option>
</select>
</div>
<div class="buttons" style="visibility: hidden;">
<div class="button add" id="buttonAdd" title="Add" style="-webkit-user-select: none; visibility: visible;">
<span class="text"> </span>
</div>
</div>
</div>
</div>
</div>
The question is: how I can hook to this event when select load itself?
I've tried $evt.addEventHandler(field, "load", func)
and $evt.addEventHandler(field.getInputControl(), "load", func)
, but without any luck unfortunately.