Customization

From Documentation


Customization



Customize More Event Link

If there is not enough space to show events in one day, Calendar will show a "more event" link:

MoreEventLink.png

The default text is from a javascript object.

msgcal.dayMORE = "+{0} more";
msgcal.monthMORE = "+{0} more";

To provide a different locale of text or override the text, you need to create a javascript file and load it. For example,

msgcal_zh.js

zk.afterLoad('calendar', function() {
    msgcal = {};
    msgcal.dayMORE = "+{0} 事件";
    msgcal.monthMORE = "+{0} 事件";
});//zk.afterLoad

Then load the script with land-addon.xml


Subsections:


The example project is at Github


Last Update : 2018/09/26

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.