Class: Spark::Table::Object
Instance Method Summary
collapse
#selector, #to_s, #unique_id
Constructor Details
#initialize ⇒ Object
Returns a new instance of Object.
12
13
14
|
# File 'app/components/spark/table/object.rb', line 12
def initialize(*)
super
end
|
Instance Method Details
#title_attrs ⇒ Object
16
17
18
19
20
|
# File 'app/components/spark/table/object.rb', line 16
def title_attrs
obj = title.present? ? title.tag_attrs : TagAttr.new
obj.add scope: :row
obj.classname.add "spark-table-detail-title"
end
|
#value_attrs ⇒ Object
22
23
24
25
26
|
# File 'app/components/spark/table/object.rb', line 22
def value_attrs
obj = value.present? ? value.tag_attrs : TagAttr.new
obj.classname.add "spark-table-detail-value"
obj
end
|