I add latetally (after a httpadmin request) properties on a configuration node. everything is saved on the server part (flow files), but when i m editing again the node configuration, the previous settings are not set.
i use the oneditprepare
to add new item to the data-template-name panel
oneditprepare: function() {
var formRows = $("div.form-row");
if (ofogtype.varList && ofogtype.varList.export) {
$.each(ofogtype.varList.export, function(i, item) {
// put in GUI
var formRow=$('<div>').addClass("form-row")
.append(
$('<label/>').attr("for", 'node-config-input-'+item.k).text(item.k)
.prepend($('<i/>').addClass("icon-tag")),
$('<input/>',{type:"text"}).attr('id', 'node-config-input-'+item.k)
.attr('placeholder', item.k)
//.add('placeHoler', item.k)
);
formRows.after(formRow);
});
}
}
The generated HTML looks like if i write HTML. But....