Menu widget to be used as a drop down
LSD.Widget.Menu.Context = new Class({
Includes: [
LSD.Widget.Menu,
LSD.Trait.Animation
],
options: {
attributes: {
type: 'context'
},
animation: {
duration: 200
}
}
});
LSD.Widget.Menu.Context.Command = new Class({
Includes: [
LSD.Widget.Menu.Command,
LSD.Trait.Item.Stateful
]
});
(function(Context) {
Context.Button = Context.Option = Context.Radio = Context.Checkbox = Context.Command.Command = Context.Command;
})(LSD.Widget.Menu.Context);