class Admino::Table::Row
Attributes
h[R]
view_context[R]
Public Class Methods
new(view_context)
click to toggle source
# File lib/admino/table/row.rb, line 8 def initialize(view_context) @view_context = view_context end
Public Instance Methods
parse_action_args(args)
click to toggle source
# File lib/admino/table/row.rb, line 30 def parse_action_args(args) html_options = args.extract_options! action_name = if args.first.is_a?(Symbol) args.shift else nil end url = if args.first.is_a?(String) args.shift else nil end label = args.shift [action_name, url, label, html_options] end
parse_column_args(args)
click to toggle source
# File lib/admino/table/row.rb, line 12 def parse_column_args(args) html_options = args.extract_options! attribute_name = if args.first.is_a?(Symbol) args.shift else nil end label = if args.first.is_a?(String) || args.first.is_a?(Symbol) args.shift else nil end [attribute_name, label, html_options] end
to_html()
click to toggle source
# File lib/admino/table/row.rb, line 50 def to_html nil end