bugfix
This commit is contained in:
parent
840a103182
commit
b7e95a8411
@ -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
14
bricks/donelement.js
Normal 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
6
examples/domelement.ui
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"widgettype":"DomElement",
|
||||
"options":{
|
||||
"html":"<p>Test domelement</p>"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user