Requires

Provides

List.js

Menu widget to be used as a list of item

License:
Public domain (http://unlicense.org).
Authors:
Yaroslaff Fedin
  1. 27
  2. 28
  3. 29
  4. 30
  5. 31
  6. 32
  7. 33
  8. 34
  9. 35
  10. 36
  11. 37
  12. 38
  13. 39
  14. 40
  15. 41
  16. 42
  17. 43
  18. 44
  19. 45
  20. 46
  21. 47
  22. 48
  23. 49
  24. 50
  25. 51
  26. 52
  27. 53
  28. 54
  29. 55
  30. 56
  31. 57
  32. 58
  33. 59
  34. 60
  35. 61
  36. 62
  37. 63
  38. 64
  39. 65
  40. 66
  41. 67
LSD.Widget.Menu.List = new Class({ Includes: [ LSD.Widget.Menu, LSD.Trait.List, LSD.Trait.Accessibility, LSD.Trait.Proxies ], options: { attributes: { type: 'list' }, layout: { item: 'menu-list-item' }, events: { self: { dominject: 'makeItems' }, element: { 'mousedown:on(option)': function() { this.listWidget.selectItem(this) } } } } }); LSD.Widget.Menu.List.Option = new Class({ Includes: [ LSD.Widget.Paint, LSD.Trait.Item.Stateful ], options: { tag: 'option' } }); LSD.Widget.Menu.List.Button = LSD.Widget.Menu.List.Li = LSD.Widget.Menu.List.Command = LSD.Widget.Menu.List.Option;