Sha256: 59b3672581162935f1c1c8ce918159904ada44b5c87a923492a123c170ca95f1

Contents?: true

Size: 1.07 KB

Versions: 6

Compression:

Stored size: 1.07 KB

Contents

module Vedeu

  module Bindings

    # Each of the Bindings::Menus events require a target menu name as an
    # argument.
    #
    # @api public
    # {include:file:docs/events/menus.md}
    # :nocov:
    module Menus

      Vedeu.bind(:_menu_bottom_) { |name| Vedeu.menus.find(name).bottom_item }
      Vedeu.bind(:_menu_current_) { |name| Vedeu.menus.find(name).current_item }

      Vedeu.bind(:_menu_deselect_) do |name|
        Vedeu.menus.find(name).deselect_item
      end

      Vedeu.bind(:_menu_items_) { |name| Vedeu.menus.find(name).items }
      Vedeu.bind(:_menu_next_) { |name| Vedeu.menus.find(name).next_item }
      Vedeu.bind(:_menu_prev_) { |name| Vedeu.menus.find(name).prev_item }

      Vedeu.bind(:_menu_selected_) do |name|
        Vedeu.menus.find(name).selected_item
      end

      Vedeu.bind(:_menu_select_) { |name| Vedeu.menus.find(name).select_item }
      Vedeu.bind(:_menu_top_) { |name| Vedeu.menus.find(name).top_item }
      Vedeu.bind(:_menu_view_) { |name| Vedeu.menus.find(name).view }

    end # Menus
    # :nocov:

  end # Bindings

end # Vedeu

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vedeu-0.4.52 lib/vedeu/bindings/menus.rb
vedeu-0.4.51 lib/vedeu/bindings/menus.rb
vedeu-0.4.50 lib/vedeu/bindings/menus.rb
vedeu-0.4.49 lib/vedeu/bindings/menus.rb
vedeu-0.4.48 lib/vedeu/bindings/menus.rb
vedeu-0.4.47 lib/vedeu/bindings/menus.rb