Class: Irelia::Table::Component

Inherits:
Component
  • Object
show all
Defined in:
app/components/irelia/table/component.rb

Defined Under Namespace

Classes: ColumnComponent

Instance Method Summary collapse

Methods inherited from Component

#add_css_classes, after_initialize, #html_options, inherited, #initialize, run_after_initialize_hooks

Constructor Details

This class inherits a constructor from Irelia::Component

Instance Method Details

#variantsObject



7
8
9
10
11
12
# File 'app/components/irelia/table/component.rb', line 7

def variants
  class_names(
    "irelia-table",
    "irelia-table--default": variant == :default
  )
end