Skip to content

Document setting the type for the field#1001

Merged
fzaninotto merged 2 commits intomarmelab:masterfrom
geecu:doc-custom-type-fieldview-not-used
Mar 31, 2016
Merged

Document setting the type for the field#1001
fzaninotto merged 2 commits intomarmelab:masterfrom
geecu:doc-custom-type-fieldview-not-used

Conversation

@geecu
Copy link
Copy Markdown

@geecu geecu commented Mar 24, 2016

Without the type, the AmountFieldView is not used,
ng-admin uses the inherited NumberFieldView

Without the type, the AmountFieldView is not used,
ng-admin uses the inherited NumberFieldView
class AmountField extends NumberField {
constructor(name) {
super(name);
this._type = 'amount';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please move that to line 90, where it's more logical.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

I thought the intention of the documentation was to show that the field view definition was optional, that's why I didn't add it to line 90 in the first place.

@fzaninotto fzaninotto merged commit ff685e7 into marmelab:master Mar 31, 2016
@fzaninotto
Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants