forked from 0x2620/oxjs
add home button to doc page and example page
This commit is contained in:
parent
3286d80b40
commit
ba1a3c4b2a
4 changed files with 47 additions and 15 deletions
|
|
@ -24,12 +24,25 @@ Ox.ExamplePage = function(options, self) {
|
|||
|
||||
self.$toolbar = Ox.Bar({size: 24});
|
||||
|
||||
self.$homeButton = Ox.Button({
|
||||
title: 'home',
|
||||
tooltip: 'Home',
|
||||
type: 'image'
|
||||
})
|
||||
.css({float: 'left', margin: '4px 2px 4px 4px'})
|
||||
.bindEvent({
|
||||
click: function() {
|
||||
that.triggerEvent('close');
|
||||
}
|
||||
})
|
||||
.appendTo(self.$toolbar)
|
||||
|
||||
self.$title = Ox.Label({
|
||||
style: 'square',
|
||||
title: self.options.title
|
||||
})
|
||||
.css({float: 'left', borderRadius: '4px', margin: '4px'})
|
||||
.appendTo(self.$toolbar)
|
||||
.css({float: 'left', borderRadius: '4px', margin: '4px 2px 4px 2px'})
|
||||
.appendTo(self.$toolbar);
|
||||
|
||||
self.$openButton = Ox.Button({
|
||||
disabled: self.options.selected == 'source',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue