Class: Keystone::Ui::Column

Inherits:
Object
  • Object
show all
Defined in:
app/components/keystone/ui/column.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_textObject (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

#keyObject (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

Returns:

  • (Boolean)


18
# File 'app/components/keystone/ui/column.rb', line 18

def hideable? = @hideable

#mobile_hidden?Boolean

Returns:

  • (Boolean)


16
# File 'app/components/keystone/ui/column.rb', line 16

def mobile_hidden? = @mobile_hidden

#sortable?Boolean

Returns:

  • (Boolean)


17
# File 'app/components/keystone/ui/column.rb', line 17

def sortable? = @sortable