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,6 +24,19 @@ Ox.DocPage = 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.item.name
|
||||
|
|
@ -34,7 +47,7 @@ Ox.DocPage = function(options, self) {
|
|||
height: '13px',
|
||||
paddingTop: '1px',
|
||||
borderRadius: '4px',
|
||||
margin: '4px'
|
||||
margin: '4px 2px 4px 2px'
|
||||
})
|
||||
.appendTo(self.$toolbar)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue