使用 x editable 内联模式在 table 上没有提交按钮的情况下自动保存在数据库中
Auto save on database without having submit button on the table using x editable inline mode
我目前正在 Ruby Rails(学生)项目上显示 table 和 X editable 插件。关于内联模式 x editable to save the edited cell back to database, it used a "submit" button, Is it possible to exclude submit button and used the check button 的文档。就像如果用户在键盘上单击 "enter" 它将自动保存到数据库中。先感谢您。
如果您查看 their documentation,我认为如果您通过将 showbuttons
设置为 false 来关闭按钮,它会自动提交?
showbuttons
Where to show buttons: left(true)|bottom|false
Form without buttons is auto-submitted.
我目前正在 Ruby Rails(学生)项目上显示 table 和 X editable 插件。关于内联模式 x editable to save the edited cell back to database, it used a "submit" button, Is it possible to exclude submit button and used the check button 的文档。就像如果用户在键盘上单击 "enter" 它将自动保存到数据库中。先感谢您。
如果您查看 their documentation,我认为如果您通过将 showbuttons
设置为 false 来关闭按钮,它会自动提交?
showbuttons
Where to show buttons: left(true)|bottom|false
Form without buttons is auto-submitted.