Skip to content

How to control Calendar outside the component #3764

@mydnic

Description

@mydnic

Description

I'm using UCalendar in my project, and I'd like to be able to trigger the previousMonth and nextMonth buttons, but with my own buttons, outside the component.

Something like this

<button @click="customPrevMonth">previous</button>
<button @click="customNextMonth">next</button>

<UCalendar ref="customCalendar" />

I tried to check this.$refs.customCalendar if I could find any exposed method, but got nothing.

Do you know how and if this is feasible ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedv3#1289

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions