Module: NattyUI::Attributes::Width
- Included in:
- Table::Cell::Attributes, Table::Column
- Defined in:
- lib/natty-ui/attributes.rb
Instance Attribute Summary collapse
-
#max_width ⇒ Integer?
Maximum element width.
-
#min_width ⇒ Integer?
Minimum element width.
-
#width ⇒ Integer, ...
Element width.
Instance Attribute Details
#max_width ⇒ Integer?
Maximum element width.
165 |
# File 'lib/natty-ui/attributes.rb', line 165 def max_width = width.is_a?(Range) ? @width.end : @width |
#min_width ⇒ Integer?
Minimum element width.
154 |
# File 'lib/natty-ui/attributes.rb', line 154 def min_width = width.is_a?(Range) ? @width.begin : @width |
#width ⇒ Integer, ...
Element width.
143 144 145 |
# File 'lib/natty-ui/attributes.rb', line 143 def width @width end |