Class: Tableficate::Filter::Input

Inherits:
Base
  • Object
show all
Defined in:
lib/tableficate/filters/input.rb

Direct Known Subclasses

InputStart, InputStop

Instance Attribute Summary

Attributes inherited from Base

#field_name, #label, #name, #options, #table, #template

Instance Method Summary collapse

Methods inherited from Base

#field_value

Constructor Details

#initialize(table, name, options = {}) ⇒ Input

Returns a new instance of Input.



4
5
6
7
8
9
# File 'lib/tableficate/filters/input.rb', line 4

def initialize(table, name, options = {})
  super(table, name, options)

  new_template = "filters/input_#{options[:type]}"
  @template = new_template if table.template.lookup_context.exists?(Tableficate::Utils::template_path(new_template, table.options[:theme]), [], true)
end