Sha256: 63a13395b7545bf2734f8b4fa62ec42f81f82642418379aca9600306000ce5a9

Contents?: true

Size: 236 Bytes

Versions: 81

Compression:

Stored size: 236 Bytes

Contents

module PgRails
  module TomSelectHelpers
    def select_tom(placeholder:, text:)
      find("input[placeholder=\"#{placeholder}\"]").click
      find('.ts-wrapper [role="option"]', text:).click
      send_keys :escape
    end
  end
end

Version data entries

81 entries across 81 versions & 1 rubygems

Version Path
pg_rails-7.6.21.pre.7 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.21.pre.6 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.21.pre.5 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.21.pre.4 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.21.pre.3 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.21.pre.2 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.21.pre.1 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.20 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.19 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.18 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.17 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.16 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.15 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.14 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.13 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.12 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.11 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.10 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.9 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.8 pg_rails/lib/pg_rails/tom_select_helpers.rb