Question

I have a slickgrid with editable cells and when i dbclick cells in grid a input box with .editor-text is shown. when i click on other cells onBeforeEditorDestory method is triggered before destroying editor(i.e., remove input box and add its value to cell), but when i click out side the grid input box focuses out but editor wont destroy. in jquery we have

`$('.editor-text').on('blur', function(){
      // do something here...
})`

, but how do i do this in angularJS and how do i destroy editor?

Was it helpful?

Solution

You can use the directive ngBlur to trigger an expression to evaluate on blur

<input name="editor" id="editor" ng-blur="doSomething()" ng-model="editorText"/>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top