Hi everyone,
it would be handy to have native support in this awesome module for null/not null value check. I made it by myself for example adding in the directive options hash:
ade-text='"... ,"null":false}"
and then in the text_directive.js file, saveEdit function I modify a section:
...
if(exited!=3) { //don't save value on esc
if(options.null == false){
if( input.val() ) {
value = input.val();
controller.$setViewValue(value);
}
} else {
value = input.val();
controller.$setViewValue(value);
}
}
...
Maybe if no change was made, broadcasting is to be considered redundant and not necessary in my opinion.
Ciao,
Luca
Hi everyone,
it would be handy to have native support in this awesome module for null/not null value check. I made it by myself for example adding in the directive options hash:
ade-text='"... ,"null":false}"
and then in the text_directive.js file, saveEdit function I modify a section:
...
if(exited!=3) { //don't save value on esc
if(options.null == false){
if( input.val() ) {
value = input.val();
controller.$setViewValue(value);
}
} else {
value = input.val();
controller.$setViewValue(value);
}
}
...
Maybe if no change was made, broadcasting is to be considered redundant and not necessary in my opinion.
Ciao,
Luca