Code Monkey home page Code Monkey logo

Comments (3)

cutterbl avatar cutterbl commented on August 15, 2024 1

@eduardolbruno These sort of questions are really best done in our Slack group or on StackOverflow.

I did a test locally, and though kind of a hack, I was able to do this for the 'no events' message

const CustomAgendaNoEvents = () => <div>Custom No Events</div>

const messages = {
  noEventsInRange: CustomAgendaNoEvents()
}

<Calendar messages={messages} ...

Now, this renders my CustomAgendaNoEvents in the span with the rbc-agenda-empty class, so you'll have to handle that.

Custom Agenda Event components are possible. By default, only the event title is displayed. But if you provide an Agenda specific Event display component it will be used, receiving the event and title as props (and no other props)

from react-big-calendar.

cutterbl avatar cutterbl commented on August 15, 2024 1

@eduardolbruno Yeah, the project doesn't manage our TS types (currently). That's handled by an outside entity. I'm only now digging into Big Calendar TS with some pre-work for 'next'.

from react-big-calendar.

eduardolbruno avatar eduardolbruno commented on August 15, 2024

@eduardolbruno These sort of questions are really best done in our Slack group or on StackOverflow.

I did a test locally, and though kind of a hack, I was able to do this for the 'no events' message

const CustomAgendaNoEvents = () => <div>Custom No Events</div>

const messages = {
  noEventsInRange: CustomAgendaNoEvents()
}

<Calendar messages={messages} ...

Now, this renders my CustomAgendaNoEvents in the span with the rbc-agenda-empty class, so you'll have to handle that.

Custom Agenda Event components are possible. By default, only the event title is displayed. But if you provide an Agenda specific Event display component it will be used, receiving the event and title as props (and no other props)

Thanks for your quick answer!
Sure, next time I will leave my question on StackOverflow, no worries.

BTW your hack it works, but noEventsInRange shows an error as it is defined with a string type.

Thanks also for the Custom Agenda event component explanation!

from react-big-calendar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.