Gets or sets a value indicating how to format and display contact names in view headers.
Namespace: MindFusion.Scheduling
Assembly: Calendar.js
SyntaxJavaScript
Copy Code
|
|---|
get contactNameFormat() {} |
String
The format string.
RemarksUse the capital letters F, M and L as placeholders for the First, Middle and Last names. Any other character will be displayed unchanged.
ExampleThe following code initializes a new Calendar, sets its view to List and specifies that the last name should be rendered for contacts. Note: the code assumes you have initialized a <div> element with id "calendar" in a web page that references the JavaScript file with this code.
JavaScript
Copy Code
|
|---|
var p = MindFusion.Scheduling; // create a new instance of the calendar calendar.contactNameFormat = "L"; |
See Also