panel "noscroll" option and text "vertical" option, + some style clean

This commit is contained in:
jean-emmanuel 2016-03-23 15:03:33 +01:00
parent cbbe42d038
commit d76786baf5
9 changed files with 38 additions and 23 deletions

View file

@ -9,7 +9,7 @@ module.exports.options = {
top:'auto',
width:'auto',
height:'auto',
stretch:false,
scroll:true,
color:'auto',
css:'',
@ -29,7 +29,7 @@ module.exports.create = function(widgetData,container) {
</div>
`)
if (widgetData.stretch) widget.addClass('stretch')
if (!widgetData.scroll) widget.addClass('noscroll')
if (widgetData.tabs.length) {
parsetabs(widgetData.tabs,widget)

View file

@ -12,6 +12,7 @@ module.exports.options = {
top:'auto',
width:'auto',
height:'auto',
vertical:false,
color:'auto',
css:'',
@ -28,6 +29,8 @@ module.exports.create = function(widgetData,container) {
label = widgetData.label===false?widgetData.id:widgetData.label=='auto'?widgetData.id:widgetData.label=='auto'
if (widgetData.vertical) widget.addClass('vertical')
widget.setValue = function(v,send,sync){
widget.text(v)
}