Sha256: 87e96a757cb042cd4b1e51ab52c551a1dfd0c1581df2ed161c4a0cdd26bc7362

Contents?: true

Size: 502 Bytes

Versions: 17

Compression:

Stored size: 502 Bytes

Contents

module BrowserHelper

  def placeholder(label=nil)
    "placeholder='#{label}'" if platform == 'apple'
  end

  def platform
    System::get_property('platform').downcase
  end

  def selected(option_value,object_value)
    "selected=\"yes\"" if option_value == object_value
  end

  def checked(option_value,object_value)
    "checked=\"yes\"" if option_value == object_value
  end

  def is_bb6
    platform == 'blackberry' && (Rho::System.getProperty('os_version').split('.')[0].to_i >= 6)
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
rhodes-7.6.0 res/generators/templates/application/app/helpers/browser_helper.rb
rhodes-7.5.1 res/generators/templates/application/app/helpers/browser_helper.rb
rhodes-7.4.1 res/generators/templates/application/app/helpers/browser_helper.rb
rhodes-7.1.17 res/generators/templates/application/app/helpers/browser_helper.rb
rhodes-6.2.0 res/generators/templates/application/app/helpers/browser_helper.rb
rhodes-6.0.11 res/generators/templates/application/app/helpers/browser_helper.rb
rhodes-5.5.18 res/generators/templates/application/app/helpers/browser_helper.rb
rhodes-5.5.17 res/generators/templates/application/app/helpers/browser_helper.rb
rhodes-5.5.15 res/generators/templates/application/app/helpers/browser_helper.rb
rhodes-5.5.0.22 res/generators/templates/application/app/helpers/browser_helper.rb
rhodes-5.5.2 res/generators/templates/application/app/helpers/browser_helper.rb
rhodes-5.5.0.7 res/generators/templates/application/app/helpers/browser_helper.rb
rhodes-5.5.0.3 res/generators/templates/application/app/helpers/browser_helper.rb
rhodes-5.5.0 res/generators/templates/application/app/helpers/browser_helper.rb
tauplatform-1.0.3 res/generators/templates/application/app/helpers/browser_helper.rb
tauplatform-1.0.2 res/generators/templates/application/app/helpers/browser_helper.rb
tauplatform-1.0.1 res/generators/templates/application/app/helpers/browser_helper.rb