Sha256: 48aad80f403181fd8c15999e6d00f2b14fda25f4ca4ef88dad4a83c2024d6dff

Contents?: true

Size: 362 Bytes

Versions: 2

Compression:

Stored size: 362 Bytes

Contents

require 'nitro/control/attribute'

module Nitro

class PasswordControl < AttributeControl
  setting :style, :default => 'width: 250px', :doc => 'The default style'

  def render
    %{
    #{emit_label}
    <input type="password" id="#{@attribute}_ctl" name="#{@attribute}" value="#{@object.send(@attribute)}"#{emit_style}#{emit_disabled} />
    }
  end
end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nitro-0.41.0 lib/nitro/control/attribute/password.rb
nitro-0.40.0 lib/nitro/control/attribute/password.rb