- removed 'stack' option for tabs, using horizontal strips does the trick

- vertical label in horizontal stripes
This commit is contained in:
jean-emmanuel 2015-09-21 10:30:18 +02:00 • committed by bordun
parent 31fe713188
commit 7571ec74f3
5 changed files with 67 additions and 40 deletions

View file

@ -41,7 +41,6 @@ parsetabs = function(tabs,parent,sub){
var tabContent = $('<div></div>').addClass('tab').attr('id',id);
if (tabData.stack) tabContent.addClass('stack')
if (tabData.stretch) tabContent.addClass('stretch')
if (tabData.tabs) {
@ -74,7 +73,7 @@ parsewidgets = function(widgets,parent) {
var widgetContainer = $('\
<div class="widget '+type+'-container" widgetType="'+type+'" widgetId="'+id+'" path="'+path+'" style="'+style+'">\
<div class="label">'+label+'</div>\
<div class="label"><span>'+label+'</span></div>\
</div>\
');
@ -86,6 +85,8 @@ parsewidgets = function(widgets,parent) {
widgetInner.type = type
widgetContainer.find('.label').data('papers',widgetData)
if (widgetData.class) widgetContainer.addClass(widgetData.class)
widgetContainer.append(widgetInner)
// store widget reference for cross widget sync

View file

@ -6,7 +6,10 @@ createWidget.strip = function(widgetData) {
<div class="strip">\
</div>\
');
if (widgetData.horizontal) widget.addClass('horizontal')
if (widgetData.horizontal) {
widget.addClass('horizontal')
widgetData.class = 'horizontal-container'
}
parsewidgets(widgetData.widgets,widget)
widget.getValue = function(){return}
widget.setValue = function(){return}