akveo / ng2-smart-table

Angular Smart Data Table component
https://akveo.github.io/ng2-smart-table/
MIT License
1.63k stars 878 forks source link

Is there a way to validate input? #63

Open radha89 opened 7 years ago

radha89 commented 7 years ago

I have a username field which I want to validate on creating and editing to see if the username already exists in any other rows (i.e. usernames have to be unique). On edit, if the username already exists, I want to be able to alert that to the user and then save data with the default username.

vitaly87 commented 7 years ago

+1

nnixaa commented 7 years ago

Hey Guys, please check out the (editConfirm) event https://akveo.github.io/ng2-smart-table/documentation in which you can confirm or reject the changes. Here's an example https://github.com/akveo/ng2-smart-table/blob/master/demo/src/app/pages/demo/components/advanced-example-confirm.component.ts#L139

cassmtnr commented 7 years ago

+1

ridj87 commented 7 years ago

Is it possible to get working links again ? I really want to implement cell validation :)

miroslavluhovy commented 6 years ago

https://github.com/akveo/ng2-smart-table/blob/master/src/app/pages/examples/various/advanced-example-confirm.component.ts

Ajinkyadon commented 4 years ago

https://github.com/akveo/ng2-smart-table/blob/master/src/app/pages/examples/various/advanced-example-confirm.component.ts

https://github.com/akveo/ng2-smart-table/blob/master/projects/demo/src/app/pages/examples/various/advanced-example-confirm.component.ts