Skip to content

Add different colour for public holidays #28

@dgvirtual

Description

@dgvirtual

Would you be interested in adding a method to mark days as holidays (use another default colour)? I could submit such pull request.

It would involve adding one more class to css, adding property and method:

    protected $holidays = [];
    /** <...> */
    
    public function setHoliday($date)
    {
        $parsed = $this->parseDate($date);
        if (! $parsed) {
            throw new InvalidArgumentException('invalid date');
        }

        $this->holidays[$parsed->format('Y-m-d')] = true;
    }
    ```
    
And then sligthly modifying the render() method. 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions