- removed 'stack' option for tabs, using horizontal strips does the trick
- vertical label in horizontal stripes
This commit is contained in:
parent
31fe713188
commit
7571ec74f3
5 changed files with 67 additions and 40 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue