Sha256: 97f2e57bf5cf6d744319c5468e2412ad5c0305857a679e65bb5a29a215037b02
Contents?: true
Size: 1.68 KB
Versions: 2
Compression:
Stored size: 1.68 KB
Contents
module Vedeu module Bindings # Each of the Bindings::Menus events require a target menu name as an # argument. # # @api public module Menus # Makes the last menu item the current menu item. Vedeu.bind(:_menu_bottom_) { |name| Vedeu.menus.find(name).bottom_item } # Returns the current menu item. Vedeu.bind(:_menu_current_) { |name| Vedeu.menus.find(name).current_item } # Deselects all menu items. Vedeu.bind(:_menu_deselect_) do |name| Vedeu.menus.find(name).deselect_item end # Returns all the menu items with respective `current` or `selected` # boolean indicators. Vedeu.bind(:_menu_items_) { |name| Vedeu.menus.find(name).items } # Makes the next menu item the current menu item, until it reaches the # last item. Vedeu.bind(:_menu_next_) { |name| Vedeu.menus.find(name).next_item } # Makes the previous menu item the current menu item, until it reaches the # first item. Vedeu.bind(:_menu_prev_) { |name| Vedeu.menus.find(name).prev_item } # Returns the selected menu item. Vedeu.bind(:_menu_selected_) do |name| Vedeu.menus.find(name).selected_item end # Makes the current menu item also the selected menu item. Vedeu.bind(:_menu_select_) { |name| Vedeu.menus.find(name).select_item } # Makes the first menu item the current menu item. Vedeu.bind(:_menu_top_) { |name| Vedeu.menus.find(name).top_item } # Returns a subset of the menu items; starting at the current item to the # last item. Vedeu.bind(:_menu_view_) { |name| Vedeu.menus.find(name).view } end # Menus end # Bindings end # Vedeu
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.4.45 | lib/vedeu/bindings/menus.rb |
vedeu-0.4.44 | lib/vedeu/bindings/menus.rb |