Sha256: 20772cdba36680898bb0134355d555767e3c8baf205434c4f9fbdb0bafb17611
Contents?: true
Size: 518 Bytes
Versions: 6
Compression:
Stored size: 518 Bytes
Contents
module Voom module Presenters module DSL module Components class NumberField < TextField attr_reader :min, :max, :step, :readonly def initialize(**attribs_, &block) super(type: :number_field, **attribs_, &block) @min = attribs.delete(:min) @max = attribs.delete(:max) @step = attribs.delete(:step) @readonly = attribs.delete(:readonly){false} expand! end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems