Skip to content

New value null/empty check option [FEATURE REQUEST] #61

@lanceschi

Description

@lanceschi

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions