@dooboostore/dom-render
Version:
html view template engine
33 lines (32 loc) • 938 B
JavaScript
import { ComponentBase } from "../ComponentBase.js";
import { DomRender } from "../../DomRender.js";
import { RawSet } from "../../rawsets/RawSet.js";
var ForOf;
((_ForOf) => {
_ForOf.selector = "dr-for-of";
class ForOf2 extends ComponentBase {
onChangeAttrRender(name, value, other) {
super.onChangeAttrRender(name, value, other);
if (this.equalsAttributeName(name, "value")) {
this.value = value;
}
}
}
_ForOf.ForOf = ForOf2;
})(ForOf || (ForOf = {}));
var ForOf_default = {
forOf: (config) => {
return RawSet.createComponentTargetElement({
name: ForOf.selector,
template: '<div dr-for-of="@this@.value" >#innerHTML#</div>',
objFactory: (e, o, r2, counstructorParam) => {
return DomRender.run({ rootObject: new ForOf.ForOf(...counstructorParam), config });
}
});
}
};
export {
ForOf,
ForOf_default as default
};
//# sourceMappingURL=ForOf.js.map