Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom "trigger" slot for datepicker, datetimepicker, and clockpicker #2553

Closed
6XGate opened this issue May 26, 2020 · 1 comment
Closed

Comments

@6XGate
Copy link
Contributor

6XGate commented May 26, 2020

Description

Since BDatepicker, BDatetimepicker, and BTimepicker are all implemented using a BDropdown, it would seem logical to add support for a custom trigger slot to these components rather than always being forced to use the BInput control.

Why Buefy need this feature

This would provide further customization, especially in use-cases where the trigger would need to have a different look, but still function as a drop-down as it does now. Having the user re-implementing this with the inline option seems big ask.

An exmple may be a regular solid color button:

<b-datepicker>
  <template #trigger>
    <b-button label="Pick date" type="is-primary"/>
  </template>
</b-datepicker>
@jtommy
Copy link
Member

jtommy commented May 26, 2020

That isn't a bad idea!

@jtommy jtommy closed this as completed in f2b6f3c Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants