vue2-datatable
vue2-datatable copied to clipboard
Support Boostrap 4 in settings menu
https://github.com/OneWayTech/vue2-datatable/issues/77
I would also prefer a bootstrap4 compatible version, as I do not want to depend on old bootstrap3 for new projects, as well as I understand that bootstrap3 is still in use by many projects.
make a different branch (bs4) would be better?
It seems like this could be supported by adding a named/scoped slot, so that HeaderSettings could be turned off and an alternate implementation could be provided using whatever ui framework the user chooses, for example:
<div v-if="$slots.default || $slots['customHeaderSettings'] || HeaderSettings" class="clearfix" style="margin-bottom: 10px">
<header-settings v-if="HeaderSettings" class="pull-right" :columns="columns" :support-backup="supportBackup">
</header-settings>
<slot />
<slot name="customHeaderSettings" :columns="columns" :support-backup="supportBackup"
</slot>
</div>
JsFiddle showing how a template could be provided in the named/scoped slot:
https://jsfiddle.net/g5oc1rgq/128/