Sha256: 75a97a50792519011e03015a2e679895f8cf4c1aaefd645f8357a09419dd8390

Contents?: true

Size: 497 Bytes

Versions: 9

Compression:

Stored size: 497 Bytes

Contents

module Uia
  module Patterns
    module Selection
      def selection_items
        filter(pattern: :selection_item).map {|e| e.as :selection_item }
      end

      def selected_items
        Library.selected_items(@element).map {|e| e.as :selection_item }
      end

      def multi_select?
        Library.selection_info(@element).multi_select?
      end

      def selection_required?
        Library.selection_info(@element).selection_required?
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
uia-0.1.3.1 lib/uia/patterns/selection.rb
uia-0.1.3 lib/uia/patterns/selection.rb
uia-0.1.2.3 lib/uia/patterns/selection.rb
uia-0.1.2.2 lib/uia/patterns/selection.rb
uia-0.1.2.1 lib/uia/patterns/selection.rb
uia-0.1.2 lib/uia/patterns/selection.rb
uia-0.1.1 lib/uia/patterns/selection.rb
uia-0.1 lib/uia/patterns/selection.rb
uia-0.0.9 lib/uia/patterns/selection.rb