Skip to content

example of options you can pass to the day method #11

@chewmanfoo

Description

@chewmanfoo

I need to highlight specific dates in a calendar_helper (some are to be blacked out on our calendar). So I need to do something like this:

  <% calendar.day(:day_method => :target_date) do |date, changes| %>
    <% if ScheduledBlackout.on_date(date).size > 0 %>
      <%= date.day  *options here to differentiate this day* %>
    <% else %>
      <%= date.day %>
    <% end %>

Can you tell me what kind of options the day method supports? Can I tell it which css class to render?

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