Class: Trestle::Form::Fields::TimeField

Inherits:
FormControl show all
Includes:
DatePicker
Defined in:
lib/trestle/form/fields/time_field.rb

Instance Attribute Summary

Attributes inherited from Trestle::Form::Field

#block, #builder, #name, #options, #template

Instance Method Summary collapse

Methods included from DatePicker

#defaults, #enable_date_picker?, #normalize_options!

Methods inherited from FormControl

#defaults, #input_group, #input_group_addon, #normalize_options!, #render

Methods inherited from Trestle::Form::Field

#defaults, #disabled?, #errors, #form_group, #initialize, #normalize_options!, #readonly?, #render

Constructor Details

This class inherits a constructor from Trestle::Form::Field

Instance Method Details

#controllerObject



12
13
14
# File 'lib/trestle/form/fields/time_field.rb', line 12

def controller
  "timepicker"
end

#default_iconObject



8
9
10
# File 'lib/trestle/form/fields/time_field.rb', line 8

def default_icon
  icon("fa fa-clock-o")
end

#fieldObject



4
5
6
# File 'lib/trestle/form/fields/time_field.rb', line 4

def field
  builder.raw_time_field(name, options)
end