在更新值之前,可以进行x可编辑的提示 [英] x-editable prompt before updating the value
本文介绍了在更新值之前,可以进行x可编辑的提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用x-editable( http://vitalets.github.io/x-editable/demo.html ),有没有办法在更新控件的值之前显示确认(警告)提示?如果用户选择取消,则该值应重置为旧值,在我的情况下为type = checklist
I am working with x-editable (http://vitalets.github.io/x-editable/demo.html), is there way, to show a confirm (warning) prompt before updating the values of the control? If user opt cancel, the value should be reset to old value, in my case it is type=checklist
乔治
推荐答案
我找到了自己,我们可以使用validate方法显示确认框,希望这对以后的参考很有用,
I found my self, we can use validate method to show the confirm box, hope this is useful for future references,
乔治
这篇关于在更新值之前,可以进行x可编辑的提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文