Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Is it possible to have global settings for boolean props? #5459

Closed
@usernamehw

Description

@usernamehw

Is your feature request related to a problem? Please describe...

For instance, Modal supports global settings:

"BModal": {
    "titleTag": "h5",
    "size": "md",
    "headerBgVariant": null,
    "headerBorderVariant": null,
    "headerTextVariant": null,
    "headerCloseVariant": null,
    "bodyBgVariant": null,
    "bodyTextVariant": null,
    "footerBgVariant": null,
    "footerBorderVariant": null,
    "footerTextVariant": null,
    "cancelTitle": "Cancel",
    "cancelVariant": "secondary",
    "okTitle": "OK",
    "okVariant": "primary",
    "headerCloseContent": "×",
    "headerCloseLabel": "Close"
},

But values like noFade or hideBackdrop do not work

BvConfig - Unknown config property "BModal.noFade"

Describe the solution you'd like

Being able to set properties like that in global config.

Describe alternatives you've considered

Creating an extra object for config and passing it for each modal v-bind="modalProps". Easy to forget.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions