README.md in simple_calendar-0.1.5 vs README.md in simple_calendar-0.1.6
- old
+ new
@@ -96,10 +96,11 @@
:month # current month, default: from params or current month
:prev_text # previous month link text, default: «
:next_text # next month link text, default: »
:start_day # starting day of week, default: :sunday
:empty_date # block called when a date is empty
+ :class # HTML class attribute for the calendar
If you wish to have Monday as the first day of the week, you'll need to
change a couple things. First, when rendering the calendar, use the
`:start_day => :monday` option like so:
@@ -132,7 +133,14 @@
```css
.calendar td { height: 100px; width: 14.28%; }
```
-By default simple_calendar will set the calendar to use .bordered-table
-and .calendar classes.
+By default simple_calendar will set the calendar to use .table
+.table-bordered .table-striped and .calendar classes.
+
+You can also override the class by passing in the `class` option.
+
+```erb
+ <%= calendar @events, class: "simple-calendar" do |event| %>
+ <% end %>
+```