Sha256: d95a86316dce1676b7a08786e6ffeb4a6c9d4ea8deca5e8603048205b2978f2e
Contents?: true
Size: 711 Bytes
Versions: 3
Compression:
Stored size: 711 Bytes
Contents
module TaoForm module Components module MomentPicker class ResultComponent < TaoForm::Components::FieldComponent attr_reader :input_type def initialize view, builder, attribute_name, options = {} @input_type = options.delete(:input_type) super view, builder, attribute_name, options end def render &block if block_given? super else super { builder.send :"#{input_type}_field", attribute_name, {disabled: options[:disabled]} } end end def self.component_name :moment_picker_result end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems