Use editable extension of Bootstrap Table in Bootstrap v4
Contents
Since x-editable has not been updated for a long time, so Bootstrap v4 is not supported, but many people ask how to use editable in v4 of Bootstrap Table. Here we have tried on how to use it.
You can see that someone has submitted PR and added support for Bootstrap v4. Here we use https://github.com/Talv/x-editable/tree/develop directly. Since it is not published to npm, we can only use the link on GitHub directly, here we use the jsdelivr tool. The files we need are in this directory bootstrap4-editable.
The files that need to be imported include:
- bootstrap4-editable/css/bootstrap-editable.css
- bootstrap4-editable/js/bootstrap-editable.min.js
- extensions/editable/bootstrap-table-editable.min.js
|
|
Online example: https://live.bootstrap-table.com/code/wenzhixin/854
It can be seen that it is now working well.
Author wenzhixin
LastMod 2019-10-06