Class: Keystone::Ui::Column
- Inherits:
-
Object
- Object
- Keystone::Ui::Column
- Defined in:
- app/components/keystone/ui/column.rb
Instance Attribute Summary collapse
-
#header_text ⇒ Object
readonly
Returns the value of attribute header_text.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
- #hideable? ⇒ Boolean
-
#initialize(key, header_text, mobile_hidden: false, sortable: false, hideable: false) ⇒ Column
constructor
A new instance of Column.
- #mobile_hidden? ⇒ Boolean
- #sortable? ⇒ Boolean
Constructor Details
#initialize(key, header_text, mobile_hidden: false, sortable: false, hideable: false) ⇒ Column
Returns a new instance of Column.
8 9 10 11 12 13 14 |
# File 'app/components/keystone/ui/column.rb', line 8 def initialize(key, header_text, mobile_hidden: false, sortable: false, hideable: false) @key = key @header_text = header_text @mobile_hidden = mobile_hidden @sortable = sortable @hideable = hideable end |
Instance Attribute Details
#header_text ⇒ Object (readonly)
Returns the value of attribute header_text.
6 7 8 |
# File 'app/components/keystone/ui/column.rb', line 6 def header_text @header_text end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
6 7 8 |
# File 'app/components/keystone/ui/column.rb', line 6 def key @key end |
Instance Method Details
#hideable? ⇒ Boolean
18 |
# File 'app/components/keystone/ui/column.rb', line 18 def hideable? = @hideable |
#mobile_hidden? ⇒ Boolean
16 |
# File 'app/components/keystone/ui/column.rb', line 16 def mobile_hidden? = @mobile_hidden |
#sortable? ⇒ Boolean
17 |
# File 'app/components/keystone/ui/column.rb', line 17 def sortable? = @sortable |