Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.

Support Boostrap 4 in settings menu #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

drount
Copy link

@drount drount commented Mar 12, 2018

No description provided.

@kenberkeley
Copy link
Collaborator

#77

@maltere
Copy link

maltere commented Mar 14, 2018

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.

@kenberkeley
Copy link
Collaborator

make a different branch (bs4) would be better?

@roszell
Copy link

roszell commented Mar 14, 2018

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/

maltere added a commit to maltere/vue2-datatable that referenced this pull request Apr 2, 2018
This Fork is going to be a Bootstrap 4 solution.
This merge is going to add Bootstrap 4 compatability.
Maybe there has to be some more changes to the src.

Proposed in OneWayTech#87
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants