Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document setting the type for the field #1001

Merged
merged 2 commits into from
Mar 31, 2016

Conversation

geecu
Copy link

@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
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
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
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