var rdoGrp = Polymer.dom(me.$.td).querySelector("#rdoGrp");
if (UT.isEmpty(rdoGrp))
{
rdoGrp = document.createElement("sc-radio-group-field");
rdoGrp.id = "rdoGrp";
rdoGrp.name = "rdoGrp";
rdoGrp.items = [{label:"A", value:"1"}, {label:"B", value:"2"}, {label:"C", value:"3"}];
//rdoGrp.value = me.searchParam.test_value;
rdoGrp.addEventListener("change", function(event)
{
rdoGrp.removeEventListener(event.type, arguments.callee);
me.set("searchParam.test_value", event.target.value);
console.log("change => " + event.target.name + " : " + event.target.value + " : " + me.searchParam.test_value);
}.bind(this));
me.$.td.appendChild(rdoGrp);
//Polymer.dom.flush();
}
동적 contorl 생성 및 바인딩처리
|
2018.10.22 21:19:29
|
2018.10.22 21:19:29
|
510
|
Aiden
Total of Attached file
0.00 Bytes of 0 files
2018.11.29
2018.11.02
2018.11.02
2018.11.01
2018.10.23
2018.10.22
2018.10.17
2018.10.17
2018.09.19
2018.09.11