Upgrade Notes
1.7.0​
No changes
1.6.0​
No changes
1.5.0​
No changes
1.4.0​
No changes
1.3.0​
No changes
1.2.1​
No changes
1.1.0​
- The table header for
table
layout of Schedule was removed via styles. If you need it back, updatewsb-table__head
class - Columns in
table
layout got its own classes -wsb-table__col-schedule
,wsb-table__col-location
and etc. Test the integration to see if everything works correctly.
1.0.1​
The changes to the widgets' layout and configuration are too large. Considering a small user base using the previous versions, we decided not to compile the updates notes for this release.
0.7.1​
Just bump up the version number:
<script src="https://cdn.workshopbutler.com/widgets.0.7.1.js"></script>
0.7.0​
Scripts​
- Switch the script version to 0.7.0:
<script src="https://cdn.workshopbutler.com/widgets.0.7.0.js"></script>
Templates​
If you use default themes and templates, no updates needed.
If you use custom templates, this release brings breaking changes:
Attributes
start
,end
,hoursPerDay
,totalHours
ofEvent
class were moved toEvent.schedule
attribute. SoEvent.start
becameEvent.schedule.start
Both
start
andend
attributes are not longer Date objects, but DateTime objects from Luxon libraryAttributes
city
andonline
ofEvent
class were moved toEvent.location
attribute. SoEvent.city
becameEvent.location.city
Attribute
Event.country
class is replaced byEvent.location.countryCode
Attributes
Event.location.countryCode
andEvent.location.city
arenull
ifEvent.location.online = true
Function
formatDate
was removed. UseSchedule.format
method instead.New
Schedule
class comes withformat
method to format dates, times and timezones based on a user locale. It returns different results based on the value of its only parameter:start_short
- Start datestart_long
- Start date and timeend_short
- End dateend_long
- End date and timefull_short
- Start and end datefull_long
- Start and end date/timetimezone_short
- Timezone abbreviation, e.g.CET
timezone_long
- Timezone name, e.g.Central European Time
For more information, check Event
, Schedule
, and Location
classes.