Sha256: 5bd2f5e638a8ebfd93cc24205f6e63388890688d1f96af8786e13f4284a0fede

Contents?: true

Size: 482 Bytes

Versions: 7

Compression:

Stored size: 482 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

      private

      def default_options
        merge_options(super, {class: 'tao-month-picker'})
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tao_form-1.0.0.beta.2 lib/tao_form/components/month_picker_component.rb
tao_form-1.0.0.beta.1 lib/tao_form/components/month_picker_component.rb
tao_form-0.2.3 lib/tao_form/components/month_picker_component.rb
tao_form-0.2.2 lib/tao_form/components/month_picker_component.rb
tao_form-0.2.1 lib/tao_form/components/month_picker_component.rb
tao_form-0.2.0 lib/tao_form/components/month_picker_component.rb
tao_form-0.1.10 lib/tao_form/components/month_picker_component.rb