-
Notifications
You must be signed in to change notification settings - Fork 23
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
defaultValue columns property not supported #137
Comments
Unfortunately there is no |
Hello @nssoft-rlagrange please have a look at these two comments: angular2-smart-table/projects/angular2-smart-table/src/lib/lib/data-set/data-set.ts Lines 19 to 20 in d1cce09
angular2-smart-table/projects/angular2-smart-table/src/lib/lib/data-set/data-set.ts Lines 173 to 179 in d1cce09
Having a So I would like to implement the idea from the comment, to have a Would that also solve your problem? |
That look like how I solved this in my code : settings.ts:24 : interface Settings {... , newData?:any } // provide a default data for any row creation Sorry again for not being able to provide a formal github pull request. |
It's alright. I will implement it for version 3.1.0. |
Hi,
In the initial ng2-smart-table, we had a defaultValue property on column settings, in order to bring a value when the add button is clicked.
It's missing in your implementation.
Is it possible to bring it back ? An alternative would be a handler to provide a new object when the add button is clicked ?
Regards,
The text was updated successfully, but these errors were encountered: