LiveWhale

Welcome, Guest Login

Support Center

Calendar Widget Arguments

Last Updated: Oct 17, 2017 10:31AM PDT
Note: the below arguments apply only to calendar widgets. See here for all other widget arguments.

Basic

Argument Description Examples
group  Show items from group(s) <arg id="group">me</arg>
‚Äč<arg id="group">biology</arg>

Or using the CORS widget:
group: ["Alumni","Academics"]
exclude_group Don't show items from group(s) <arg id="exclude_group">biology</arg>
default_view Which view (day, week, month) should load first <arg id="default_view">week</arg>
exclude_view Don't include this view in the menu <arg id="default_view">month</arg>
month_view_only Only show the month view <arg id="month_view_only">true</arg>

Categories

Argument Description Examples
category show items in selected category <arg id="category">lectures</arg>
exclude_category do not show items in selected category <arg id="exclude_category">Deadlines</arg>
category_mode require that items match any or all categories <arg id="category_mode">any</arg>
use_category_classes apply categories as css classes <arg id="use_category_classes">true</arg>

Tags

Argument Description Examples
tag show items that are tagged with specific tag(s) <arg id="tag">apples</arg>
exclude_tag show items that are not tagged with specific tag(s) <arg id="exclude_tag">oranges</arg>
tag_mode require that items match any/all the specified tags <arg id="tag_mode">any<arg>
use_tag_classes apply tags as css classes <arg id="use_tag_classes">true</arg>

Filtering and Sorting

Argument Description Examples
only_starred show only starred items <arg id="only_starred">true</arg>
hide_repeats Only show next instance of a repeating/multi-day event <arg id="hide_repeats">true</arg>
filter_mode require items match any/all filters below <arg id="filter_mode">any</arg>
filter select one of the options below with an action and a value to filter based on your criteria <arg id="filter" name="title" action="contains">Apples</arg>

Format

Argument Description Examples
location_char_limit truncates the event location (default is 50 characters) <arg id="location_char_limit">60</arg>
thumb_width format thumb image width <arg id="thumb_width">100</arg>
thumb_height format thumb image height <arg id="thumb_height">100</arg>


When using a LiveWhale Calendar remote (CORS) calendar widget, you'll reconfigure the above arguments into JavaScript. Make sure to put quotes around strings:
 
<script>
    lwCalendar({
        host: 'http://calendar-hostname',
        theme: 'global',
        widget_args: {
              hide_repeats: true,
              category: "Performances",
              thumb_width: 200,
              thumb_height: 200
        }
    });
</script>
eb8f96c071020d8b0923da726d6cab65@livewhale.desk-mail.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete