Sha256: 6ba23099dc4ab84b2912a851aa6308d1022ce61ac171e23111906d63489c7253

Contents?: true

Size: 372 Bytes

Versions: 10

Compression:

Stored size: 372 Bytes

Contents

module TaoForm
  module Components
    class MonthPickerComponent < MomentPicker::Base

      def input_type
        @input_type ||= :month
      end

      def segments
        @segments ||= %w(year month)
      end

      def default_segment
        @default_segment ||= :month
      end

      def self.component_name
        :month_picker
      end

    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tao_form-0.1.9 lib/tao_form/components/month_picker_component.rb
tao_form-0.1.8 lib/tao_form/components/month_picker_component.rb
tao_form-0.1.7 lib/tao_form/components/month_picker_component.rb
tao_form-0.1.6 lib/tao_form/components/month_picker_component.rb
tao_form-0.1.5 lib/tao_form/components/month_picker_component.rb
tao_form-0.1.4 lib/tao_form/components/month_picker_component.rb
tao_form-0.1.3 lib/tao_form/components/month_picker_component.rb
tao_form-0.1.2 lib/tao_form/components/month_picker_component.rb
tao_form-0.1.1 lib/tao_form/components/month_picker_component.rb
tao_form-0.1.0 lib/tao_form/components/month_picker_component.rb