6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/index_for/builders/list_column_builder.rb', line 6
def attribute attribute_name, options = {}, &block
label_options = options
label_options[:html] = options[:label_html]
label = list_label attribute_name, label_options
content_options = options
content_options[:html] = options[:content_html]
content = list_content attribute_name, content_options, &block
row_options = options
row_options[:html] = options[:row_html]
wrap_with :list_row, label + content, row_options
end
|