Created
February 5, 2011 00:39
-
-
Save jeffremer/812068 to your computer and use it in GitHub Desktop.
Flexible vbox layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
index: function(interaction) { | |
var panel = new Wbx.views.AbstractView({ | |
layout: { | |
type: 'vbox', | |
align: 'stretch' | |
}, | |
defaults: { | |
flex: 1 | |
}, | |
dockedItems: [ | |
{ | |
html: 'Some docked text', | |
height: 80 | |
} | |
], | |
items: [ | |
{ | |
html: 'Some text', | |
listeners: { | |
afterrender: function(me) { | |
this.mon(this.el, 'tap', function() { | |
Wbx.views.Msg.alert('Alert', 'Some text'); | |
}) | |
} | |
} | |
}, | |
{ | |
html: 'Some text', | |
listeners: { | |
afterrender: function(me) { | |
this.mon(this.el, 'tap', function() { | |
Wbx.views.Msg.alert('Alert', 'Some text'); | |
}) | |
} | |
} | |
}, | |
{ | |
html: 'Some text', | |
listeners: { | |
afterrender: function(me) { | |
this.mon(this.el, 'tap', function() { | |
Wbx.views.Msg.alert('Alert', 'Some text'); | |
}) | |
} | |
} | |
} | |
] | |
}); | |
this.renderIndex(panel, interaction); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment