class Lolita::Components::Configuration::ColumnComponent

Should include routes helper and lolita urls helpers

%td{{:class => column.list && “with-nested-list”}.merge(nested_list_options)}= column.list ? link_to(content_text,“#”) : content_text

Public Instance Methods

nested_list_options(parent) click to toggle source
# File lib/lolita/components/configuration/column_component.rb, line 22
def nested_list_options parent
  parent.list && {
    :"data-nested-list-url" => lolita_resources_path(column.list.mapping, column.list.nested_options_for(record))
  }
end
td_attributes(record) click to toggle source
# File lib/lolita/components/configuration/column_component.rb, line 12
def td_attributes(record)
  {
    :class => parent.list && "with-nested-list"
  }.merge(nested_list_options(record))
end
td_value(record,view) click to toggle source
# File lib/lolita/components/configuration/column_component.rb, line 18
def td_value(record,view)
  column.formatted_value(record)
end