Coder Social home page Coder Social logo

customizing the tiles about kalender HOT 8 CLOSED

kayatmin avatar kayatmin commented on August 22, 2024
customizing the tiles

from kalender.

Comments (8)

werner-scholtz avatar werner-scholtz commented on August 22, 2024 1

Cool let me know if you succeed 👍

from kalender.

werner-scholtz avatar werner-scholtz commented on August 22, 2024

I'm not really sure what you mean, maybe a image could help. From what I understand you want to change the background color of the days that are in the past. This goes for the MultiDayView and MonthView.

from kalender.

kayatmin avatar kayatmin commented on August 22, 2024

@werner-scholtz thanks for the quick reply!

i'd like to achieve something like the following:

image

where the dark bordered tiles are in the past and shaded with grey strips.. preferably also able to disable the click events for these tiles.

from kalender.

werner-scholtz avatar werner-scholtz commented on August 22, 2024

Aaah okay, I take it you also don't want those area's to allow the user to create events ?

from kalender.

kayatmin avatar kayatmin commented on August 22, 2024

yes you're right. i could achieve the behavior by checking the current time against the time range given by the event handler on clicks, however i need a way to make those tiles in the past look different.

from kalender.

werner-scholtz avatar werner-scholtz commented on August 22, 2024

To achieve the background I recommend you create a custom hourLineBuilder that can draw the background where you need it (hourlines), you can take a look at how the time-indicator works for some inspiration.

CalendarView<Event>(
      controller: controller,
      eventsController: eventController,
      viewConfiguration: currentConfiguration,
      tileBuilder: _tileBuilder,
      multiDayTileBuilder: _multiDayTileBuilder,
      scheduleTileBuilder: _scheduleTileBuilder,
      components: CalendarComponents(
        hourLineBuilder: _hourlines
      ),
    );

from kalender.

kayatmin avatar kayatmin commented on August 22, 2024

ok, thank you! will dive in deeper.

from kalender.

werner-scholtz avatar werner-scholtz commented on August 22, 2024

Hi I was thinking this might be a good example to add to the package, would you be able to do it ?

from kalender.

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.