class Weaver::DynamicTableCell

Attributes

transform_script[RW]

Public Instance Methods

data_button(anIcon, title = {}, options = {}, &block) click to toggle source
# File lib/weaver/element_types/dynamic_table_cell.rb, line 7
def data_button(anIcon, title = {}, options = {}, &block)
  options[:icon] = anIcon
  options[:title] = title
  options[:data] = "$(this).closest('td').data('object')"
  _button(options, &block)
end
transform(script) click to toggle source
# File lib/weaver/element_types/dynamic_table_cell.rb, line 14
def transform(script)
  @transform_script = script
end