Does anybody have an example of how I could highlight/de-highlight rows in a skootable with unsaved changes?
Page 1 / 1
A kind of conditional rendering on row has unsaved changes.
hmmm… I think you’d have to use the skuid editor. This would allow to use the events on the UI as they happen. The following is straight from the help.skuidify.com site with some minor changes.
- // Instantiate a new skuid.ui.Editor
- var myeditor = new skuid.ui.Editor(parentElement);
- function removeClass(){
- // loop through all items in list to remove class
- }
- // Extend the default handle*****() functionalities
- myeditor.handleChange = function() {
- skuid.ui.Editor.prototype.handleChange.call(myeditor);
- // loop through the list to add/remove a class to each
- // item called “unsaved_changes”
- }
- myeditor.handleSave= function() {
- skuid.ui.Editor.prototype.handleSave.call(myeditor);
- removeClass();
- }
- myeditor.handleCancel= function() {
- skuid.ui.Editor.prototype.handleCancelhandleChange.call(myeditor);
- removeClass();
- }
I think this will work.
Lemeno either way as I’d like to use the same code.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.