This commit is contained in:
yumoqing 2024-05-08 11:00:46 +08:00
parent 840a103182
commit b7e95a8411
3 changed files with 21 additions and 1 deletions

View File

@ -1,4 +1,4 @@
SOURCES=" page_data_loader.js factory.js uitypesdef.js utils.js uitype.js \
SOURCES=" page_data_loader.js factory.js uitypesdef.js utils.js uitype.js domelement.js \
i18n.js widget.js layout.js bricks.js image.js \
jsoncall.js myoperator.js scroll.js menu.js modal.js running.js \
markdown_viewer.js video.js audio.js toolbar.js tab.js \

14
bricks/donelement.js Normal file
View File

@ -0,0 +1,14 @@
var bricks = window.bricks || {};
bricks.DomElement = class extends bricks.JsWidget {
/*
{
html:
}
constructor(opts){
super(opts);
this.dom_element.interHtml = opts.html;
}
}
bricks.Factory.register('DomElement', bricks.DomElement);

6
examples/domelement.ui Normal file
View File

@ -0,0 +1,6 @@
{
"widgettype":"DomElement",
"options":{
"html":"<p>Test domelement</p>"
}
}