- Fixed a bug in
picker_row
where the value of picker wasn't being set indidSelectRow
.
-
Added
:input_accessory
property, which currently accepts:done
as the value. This will add aUIToolbar
above the keyboard with a "Done" button the user can tap to dismiss the keyboard. -
Added
Row#on_delete
callback which occurs when a row is swipe-to-delete'd.
-
:image
rows which are not editable do not show the "plus" icon.
-
Added
:currency
row type, which automatically presents an entered number into the current locale's format (i.e. "$4,003.45" or "€ 3.004,35") -
Added
on_delete
callback for when aRow
is deleted -
Correctly handle
on_tap
forRow
objects, regardless of whether or not they are:button
s.
-
Fixed a crash that occured when rapidly serializing a form.
-
Template rows are now persisted correctly.
-
ImageRow
s which are disabled will not show the "plus" icon
-
Added
:picker_mode
row property which lets you choose what type of date picker you're using (i.e.:date
,:time
,:date_time
, or:countdown
) -
Added
:text_alignment
row property which controls how a row's input field's text is aligned (i.e.:right
(default),:left
, or:center
). -
Added
:editable
row property which controls if a user can interact with the row's control (a text input, slider, etc)
-
Fixed size issue with iPhone apps running @2x on an iPad (see
row_type/base.rb#field_buffer
) -
Fixed bug in
PickerRow
where KVOing:value
changes woulnd't reflect in the picker UI. -
Fixed bug in a
UITextView
patch that removed copy and paste by default for allUITextView
s.
-
Added
form.values = { key: "value" }
, which will set all of the form'svalue
s for each specifiedkey
en-masse. -
:options
and:picker
rows support a mapping between the displayed value and the row's value. Ex: `row.items = [["User 1", user1_id], ["User 2", user2_id]] -
:static
rows are now able to use:placeholder
and:value
attributes to display text along the right-hand side.
- Support a generic
:button
RowType
which can be used in conjunction with aRow
'son_tap
method.
-
Fixed bug where pushing a subform inherited from current controller class, which could cause expected behavior.
-
Fixed crash when a Slider or Switch row type had an empty :title
-
Fixed device crash when taking photo
-
Fixed problems related to KVO-ing
Formable
objects. -
Use
UIKeyboardTypeNumberPad
for iPads;UIKeyboardTypeDecimalPad
doesn't exist for those.
-
Raise
Formotion::NoRowTypeError
if noRowType
(:type
) is specified. -
Fix bug for iOS6 where some fields weren't getting their value set.
- Updated to require BubbleWrap 1.1.4 for RM 1.24 compatibility
:display_key
for a:subform
row; when given, the value for that key in the subform's#render
will be displayed alongside the chevron:
Formotion::Form.persist
and:persist_as
to automatically synchronize your form to the disk:
@form = Formotion::Form.persist({
persist_as: :settings,
sections: [....]
})
- Fix problems with inheriting Formable models.
:subform
RowType
. Tapping this row will push a new form with the information given in the row'ssubform
property.:template
RowType
. This type of row allows you to add more "child" rows according to a specification given in the:template
key.Formotion::Formable
module for toinclude
in models. This adds a.to_form
method and can be used with aFormotion::FormableController
to automatically create a form synced to a model.
reuseIdentifier
is now based on#object_id
, so dynamically adding rows at runtime should work.- Every
RowType
now has an appropriate binding betweenrow.value
and it's display. So if you have aStringRow
and change it'srow.value
programmatically, the view will update accordingly. rake spec:units
andrake spec:functionals
for running tests faster.- renamed
rowHeight
torow_height
- Fixed crash when
form.submit
called without aon_submit
callback set. - Add more thorough file dependencies
- Add new row type for UIPickerView (:picker)
- Bump required bubble-wrap version to 1.1.2 to fix a
lib
path issue.
- Add new row type for images (:image)
- Add new row type for UISegmentedControl (:options)
- Add new row type for UISlider (:slider)
- Add new row type for multiline text (:text)
- Add new row types for dates (:date)
- Big code refactoring