Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: clayallsopp/formotion
...
head fork: clayallsopp/formotion
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Commits on Nov 08, 2012
@clayallsopp :static rows are now subclasses of StringRow
this means they also have access to :placeholder and :value
7b06bac
Commits on Nov 10, 2012
@clayallsopp changelog++ f224fcb
Showing with 7 additions and 2 deletions.
  1. +3 −1 CHANGELOG.md
  2. +4 −1 lib/formotion/row_type/static_row.rb
View
4 CHANGELOG.md
@@ -1,4 +1,4 @@
-## 1.1.5 - ??
+## 1.1.5 - November 9, 2012
### Features
@@ -6,6 +6,8 @@
- `: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.
+
## 1.1.4 - October 27, 2012
### Features
View
5 lib/formotion/row_type/static_row.rb
@@ -1,6 +1,9 @@
module Formotion
module RowType
- class StaticRow < Base
+ class StaticRow < StringRow
+ def after_build(cell)
+ self.row.text_field.enabled = false
+ end
end
end
end

No commit comments for this range

Something went wrong with that request. Please try again.