Sha256: ca67d58f73cc0590894577e7c883a056738d47a5b410a9281b7c3011ac7039fd

Contents?: true

Size: 499 Bytes

Versions: 17

Compression:

Stored size: 499 Bytes

Contents

module Uia
  module Patterns
    module Selection
      def selection_items
        find_all(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

17 entries across 17 versions & 1 rubygems

Version Path
uia-1.0 lib/uia/patterns/selection.rb
uia-0.8 lib/uia/patterns/selection.rb
uia-0.7 lib/uia/patterns/selection.rb
uia-0.7.alpha.1 lib/uia/patterns/selection.rb
uia-0.6 lib/uia/patterns/selection.rb
uia-0.5 lib/uia/patterns/selection.rb
uia-0.4.4 lib/uia/patterns/selection.rb
uia-0.4.3 lib/uia/patterns/selection.rb
uia-0.4.2 lib/uia/patterns/selection.rb
uia-0.4.1 lib/uia/patterns/selection.rb
uia-0.4 lib/uia/patterns/selection.rb
uia-0.3.3 lib/uia/patterns/selection.rb
uia-0.3.2 lib/uia/patterns/selection.rb
uia-0.3.1 lib/uia/patterns/selection.rb
uia-0.3 lib/uia/patterns/selection.rb
uia-0.2.1 lib/uia/patterns/selection.rb
uia-0.2 lib/uia/patterns/selection.rb