BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
[Script]
function onFilterChange(args) {
if(args.isInteraction == true || args.isInteraction == false )
{
//isInteraction == true ->User change the value
//isInteraction == false ->Dynamically change the value from MaskEdit component.
//isInteraction == undefined ->It’s triggers from angular
//your code block
}
}
|
ngAfterViewInit()
{
console.log(angularObj.inputObj.get_StrippedValue());
function tog(v){return v?'addClass':'removeClass';}
$(document).on('input', '.clearable', function(){
$(this)[tog(this.value)]('x');
}).on('mousemove', '.x', function( e ){
$(this)[tog(this.offsetWidth-18 < e.clientX-this.getBoundingClientRect().left)]('onX');
}).on('touchstart click', '.onX', function( ev ){
ev.preventDefault();
$(this).removeClass('x onX');
// create the object for maskedit control
var obj=$(this).ejMaskEdit("instance");
obj.option("value","");
});
} |