Class: Input::Map::Cell
- Inherits:
-
Cell
- Object
- Cell
- Input::Map::Cell
- Defined in:
- app/cells/lato_view/input/map/cell.rb
Constant Summary collapse
- @@widths =
VIEW_INPUTWIDTH
Instance Attribute Summary collapse
-
#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_address ⇒ Object
Returns the value of attribute name_address.
-
#name_lat ⇒ Object
Returns the value of attribute name_lat.
-
#name_lng ⇒ Object
Returns the value of attribute name_lng.
-
#placeholder ⇒ Object
Returns the value of attribute placeholder.
-
#required ⇒ Object
Returns the value of attribute required.
-
#value_address ⇒ Object
Returns the value of attribute value_address.
-
#value_lat ⇒ Object
Returns the value of attribute value_lat.
-
#value_lng ⇒ Object
Returns the value of attribute value_lng.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(name_lat: 'lat', name_lng: 'lng', name_address: 'address_input', value_lat: '', value_lng: '', value_address: '', placeholder: '', label: '', width: 'large', required: false, disabled: false, custom_class: '') ⇒ Cell
constructor
A new instance of Cell.
- #show ⇒ Object
Constructor Details
#initialize(name_lat: 'lat', name_lng: 'lng', name_address: 'address_input', value_lat: '', value_lng: '', value_address: '', placeholder: '', label: '', width: 'large', required: false, disabled: false, custom_class: '') ⇒ Cell
Returns a new instance of Cell.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'app/cells/lato_view/input/map/cell.rb', line 11 def initialize(name_lat: 'lat', name_lng: 'lng', name_address: 'address_input', value_lat: '', value_lng: '', value_address: '', placeholder: '', label: '', width: 'large', required: false, disabled: false, custom_class: '') # save params @name_lat = name_lat @name_lng = name_lng @name_address = name_address @value_lat = value_lat @value_lng = value_lng @value_address = value_address @placeholder = placeholder @width = width @label = label @required = required @disabled = disabled @custom_class = custom_class # check params check_params end |
Instance Attribute Details
#custom_class ⇒ Object
Returns the value of attribute custom_class.
6 7 8 |
# File 'app/cells/lato_view/input/map/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/map/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/map/cell.rb', line 6 def label @label end |
#name_address ⇒ Object
Returns the value of attribute name_address.
6 7 8 |
# File 'app/cells/lato_view/input/map/cell.rb', line 6 def name_address @name_address end |
#name_lat ⇒ Object
Returns the value of attribute name_lat.
6 7 8 |
# File 'app/cells/lato_view/input/map/cell.rb', line 6 def name_lat @name_lat end |
#name_lng ⇒ Object
Returns the value of attribute name_lng.
6 7 8 |
# File 'app/cells/lato_view/input/map/cell.rb', line 6 def name_lng @name_lng end |
#placeholder ⇒ Object
Returns the value of attribute placeholder.
6 7 8 |
# File 'app/cells/lato_view/input/map/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/map/cell.rb', line 6 def required @required end |
#value_address ⇒ Object
Returns the value of attribute value_address.
6 7 8 |
# File 'app/cells/lato_view/input/map/cell.rb', line 6 def value_address @value_address end |
#value_lat ⇒ Object
Returns the value of attribute value_lat.
6 7 8 |
# File 'app/cells/lato_view/input/map/cell.rb', line 6 def value_lat @value_lat end |
#value_lng ⇒ Object
Returns the value of attribute value_lng.
6 7 8 |
# File 'app/cells/lato_view/input/map/cell.rb', line 6 def value_lng @value_lng end |
#width ⇒ Object
Returns the value of attribute width.
6 7 8 |
# File 'app/cells/lato_view/input/map/cell.rb', line 6 def width @width end |
Instance Method Details
#show ⇒ Object
34 35 36 |
# File 'app/cells/lato_view/input/map/cell.rb', line 34 def show render "show.html" end |