Class: OpenRosa::Fields::Trigger

Inherits:
Base
  • Object
show all
Defined in:
lib/open_rosa/fields/trigger.rb

Overview

Trigger field for confirmation buttons/checkboxes Maps to XForms element Adds "OK" value when confirmed

Instance Attribute Summary collapse

Attributes inherited from Base

#default, #hint, #label, #name, #required

Instance Method Summary collapse

Constructor Details

#initialize(name, options = {}) ⇒ Trigger

Returns a new instance of Trigger.



11
12
13
14
# File 'lib/open_rosa/fields/trigger.rb', line 11

def initialize(name, options = {})
  super
  @appearance = options[:appearance]
end

Instance Attribute Details

#appearanceObject (readonly)

Returns the value of attribute appearance.



9
10
11
# File 'lib/open_rosa/fields/trigger.rb', line 9

def appearance
  @appearance
end