Sha256: 63a13395b7545bf2734f8b4fa62ec42f81f82642418379aca9600306000ce5a9

Contents?: true

Size: 236 Bytes

Versions: 79

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

79 entries across 79 versions & 1 rubygems

Version Path
pg_rails-7.6.28 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.27 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.26 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.25 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.24 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.24.pre.5 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.24.pre.4 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.24.pre.3 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.23 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.22 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.22.pre.3 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.22.pre.2 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.22.pre.1 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.21 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.21.pre.11 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.21.pre.10 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.21.pre.9 pg_rails/lib/pg_rails/tom_select_helpers.rb
pg_rails-7.6.21.pre.8 pg_rails/lib/pg_rails/tom_select_helpers.rb
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