Wijmo UI for the Web
titleFormat Option

The title text format that will be shown under the header bar. undefined = start date. undefined = end date.

Syntax
Javascript (Usage) 
$(function () {
    
    // Get value
    var returnsValue; // Type:  object
    returnsValue = $(".selector").wijevcal("option", "titleFormat");
    
    // Set value
    var newValue; // Type:  object
    $(".selector").wijevcal("option", "titleFormat", newValue);
        
});
Javascript (Specification) 
var titleFormat : object;
Example
Specify common title format:
$("#eventscalendar").wijevcal(
    { 
        titleFormat: "First date: {0:d} Last date: {1:d}" 
    } 
);
Specify separate format for the each view:
$("#eventscalendar").wijevcal(
    { 
        titleFormat:  { 
 function customFormatFunc will be called 
        //in order to format string: 
            day: customFormatFunc,
            week: "Week {0:d} : {1:d}",
            month: "{0:yyyy, MMMM}",
            list: "Events until {1:d}"
        }
    }
);
Browser Compatibility
7
5
5

See Also

Reference

options type
wijevcal jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.