update symbols example
This commit is contained in:
parent
360c9833cf
commit
3286d80b40
1 changed files with 3 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
...
|
This example shows the symbols that come with `Ox.UI`.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
@ -35,7 +35,7 @@ Ox.load('UI', function() {
|
||||||
['unlock', 'lock'],
|
['unlock', 'lock'],
|
||||||
['copyright', 'noCopyright'],
|
['copyright', 'noCopyright'],
|
||||||
['circle', 'square'],
|
['circle', 'square'],
|
||||||
['icon', 'bracket', 'clock', 'switch', 'user']
|
['bracket', 'clock', 'home', 'icon', 'switch', 'user']
|
||||||
],
|
],
|
||||||
symbols = Ox.flatten(groups),
|
symbols = Ox.flatten(groups),
|
||||||
$menu = Ox.Bar({size: 48}),
|
$menu = Ox.Bar({size: 48}),
|
||||||
|
@ -57,10 +57,7 @@ Ox.load('UI', function() {
|
||||||
.appendTo($buttons);
|
.appendTo($buttons);
|
||||||
});
|
});
|
||||||
symbols.forEach(function(symbol) {
|
symbols.forEach(function(symbol) {
|
||||||
Ox.Element({
|
Ox.Element({tooltip: symbol})
|
||||||
element: '<div>',
|
|
||||||
tooltip: symbol
|
|
||||||
})
|
|
||||||
.addClass('OxGrid symbol')
|
.addClass('OxGrid symbol')
|
||||||
.append(
|
.append(
|
||||||
$('<img>').attr({src: Ox.UI.getImageURL(
|
$('<img>').attr({src: Ox.UI.getImageURL(
|
||||||
|
|
Loading…
Reference in a new issue