Class: Input::Date::Cell
- Inherits:
-
Cell
- Object
- Cell
- Input::Date::Cell
- Defined in:
- app/cells/lato_view/input/date/cell.rb
Constant Summary collapse
- @@widths =
VIEW_INPUTWIDTH
Instance Attribute Summary collapse
-
#birthdate ⇒ Object
Returns the value of attribute birthdate.
-
#custom_class ⇒ Object
Returns the value of attribute custom_class.
-
#disabled ⇒ Object
Returns the value of attribute disabled.
-
#label ⇒ Object
Returns the value of attribute label.
-
#name ⇒ Object
Returns the value of attribute name.
-
#placeholder ⇒ Object
Returns the value of attribute placeholder.
-
#required ⇒ Object
Returns the value of attribute required.
-
#value ⇒ Object
Returns the value of attribute value.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(name: 'input', placeholder: '', value: '', label: '', width: 'large', required: false, disabled: false, custom_class: '', birthdate: false) ⇒ Cell
constructor
A new instance of Cell.
- #show ⇒ Object
Constructor Details
#initialize(name: 'input', placeholder: '', value: '', label: '', width: 'large', required: false, disabled: false, custom_class: '', birthdate: false) ⇒ Cell
Returns a new instance of Cell.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'app/cells/lato_view/input/date/cell.rb', line 9 def initialize(name: 'input', placeholder: '', value: '', label: '', width: 'large', required: false, disabled: false, custom_class: '', birthdate: false) # save params @name = name @placeholder = placeholder @value = value @label = label @width = width @required = required @disabled = disabled @custom_class = custom_class @datepicker_class = birthdate ? 'birthdate-picker' : 'date-picker' # check params check_params end |
Instance Attribute Details
#birthdate ⇒ Object
Returns the value of attribute birthdate.
6 7 8 |
# File 'app/cells/lato_view/input/date/cell.rb', line 6 def birthdate @birthdate end |
#custom_class ⇒ Object
Returns the value of attribute custom_class.
6 7 8 |
# File 'app/cells/lato_view/input/date/cell.rb', line 6 def custom_class @custom_class end |
#disabled ⇒ Object
Returns the value of attribute disabled.
6 7 8 |
# File 'app/cells/lato_view/input/date/cell.rb', line 6 def disabled @disabled end |
#label ⇒ Object
Returns the value of attribute label.
6 7 8 |
# File 'app/cells/lato_view/input/date/cell.rb', line 6 def label @label end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'app/cells/lato_view/input/date/cell.rb', line 6 def name @name end |
#placeholder ⇒ Object
Returns the value of attribute placeholder.
6 7 8 |
# File 'app/cells/lato_view/input/date/cell.rb', line 6 def placeholder @placeholder end |
#required ⇒ Object
Returns the value of attribute required.
6 7 8 |
# File 'app/cells/lato_view/input/date/cell.rb', line 6 def required @required end |
#value ⇒ Object
Returns the value of attribute value.
6 7 8 |
# File 'app/cells/lato_view/input/date/cell.rb', line 6 def value @value end |
#width ⇒ Object
Returns the value of attribute width.
6 7 8 |
# File 'app/cells/lato_view/input/date/cell.rb', line 6 def width @width end |
Instance Method Details
#show ⇒ Object
27 28 29 |
# File 'app/cells/lato_view/input/date/cell.rb', line 27 def show render "show.html" end |