Skip to content

Commit

Permalink
Merge pull request #1001 from geecu/doc-custom-type-fieldview-not-used
Browse files Browse the repository at this point in the history
Document setting the type for the field
  • Loading branch information
fzaninotto committed Mar 31, 2016
2 parents 9229425 + fe53d46 commit ff685e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/Custom-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ import NumberField from 'admin-config/lib/Field/NumberField';
class AmountField extends NumberField {
constructor(name) {
super(name);
this._type = 'amount';
this._currency = '$';
}
currency(currency) {
Expand Down

0 comments on commit ff685e7

Please sign in to comment.