update symbols example

This commit is contained in:
rolux 2012-06-18 10:57:39 +02:00
parent 360c9833cf
commit 3286d80b40

View file

@ -1,5 +1,5 @@
/*
...
This example shows the symbols that come with `Ox.UI`.
*/
'use strict';
@ -35,7 +35,7 @@ Ox.load('UI', function() {
['unlock', 'lock'],
['copyright', 'noCopyright'],
['circle', 'square'],
['icon', 'bracket', 'clock', 'switch', 'user']
['bracket', 'clock', 'home', 'icon', 'switch', 'user']
],
symbols = Ox.flatten(groups),
$menu = Ox.Bar({size: 48}),
@ -57,10 +57,7 @@ Ox.load('UI', function() {
.appendTo($buttons);
});
symbols.forEach(function(symbol) {
Ox.Element({
element: '<div>',
tooltip: symbol
})
Ox.Element({tooltip: symbol})
.addClass('OxGrid symbol')
.append(
$('<img>').attr({src: Ox.UI.getImageURL(