CroudTech / vue-fullcalendar

FullCalendar Wrapper for vue
MIT License
483 stars 100 forks source link

Custom button text #171

Closed George2215 closed 6 years ago

George2215 commented 6 years ago

I can not customize the text of the buttons, I appreciate your orientation

the button listWeek and listDay always shown "list"

this my code:

header: {
     left: 'prev,next, today',
     center: 'title',
     right: 'month,listWeek,listDay'
 },
views: {              
      listWeek: 'List Week',
      listDay: 'List Day'
 }
BrockReece commented 6 years ago

How are you passing these objects into the component?

George2215 commented 6 years ago
<full-calendar :events="events"                       
                       :config="config"                       
                       :header="header"
                       :views="views"
                       :defaultView="defaultView"                                                  
                       @day-click="dayClick" 
                       @event-selected="eventSelected"
        >
</full-calendar>
BrockReece commented 6 years ago

views isn't a prop, you will have to pass it through the custom config prop

George2215 commented 6 years ago

thank you so much, solved...