I need init Combo in Directive. I can have any count of Combo. ANY. And all of them must change value when I changed value in some Combo.
I coded Init.
I use getComboText()
I don’t know to set this value (ComboText) to all other Combo’s.
var combo_inputs = document.getElementsByClassName('dhx_combo_input');
for (var i = 1; i <= combo_inputs.length; i++) {
combo_inputs[i-1].value="ghghhg";}
});
Forgot to mention. We made an important change in your code: replaced ‘scope: true’ with ‘scope: false’, because value variable must be contained within same function’s scope.
Not sure about Angular… But you can redefine .dhx_combo_input{} rule in css. Or if you want to apply className dynamically, add it via private js property DOMelem_input
I.e.