Some kind of a network preferences
LSD.Widget.Menu.List.Networks = new Class({
Extends: LSD.Widget.Menu.List,
options: {
layers: {
shadow: ['shadow'],
background: [LSD.Layer.Fill.Background]
},
layout: {
item: 'menu-list-networks-item'
}
}
})
LSD.Widget.Menu.List.Networks.Option = new Class({
Extends: LSD.Widget.Menu.List.Option,
options: {
attributes: {
itemscope: 'true'
}
},
setContent: function(item) {
this.parent('<h2 itemprop="title">' + item.name + '</h2>' + '<p itemprop="status">' + (item.online ? 'Connected' : 'Not connected') + '</p>');
}
});
LSD.Widget.Menu.List.Networks.Button = LSD.Widget.Menu.List.Networks.Li = LSD.Widget.Menu.List.Networks.Command = LSD.Widget.Menu.List.Networks.Option