0

Calendar month view - title instead of content

asked 2015-10-15 13:40:04 +0800

mhlic gravatar image mhlic
38 3

On the calendar month view it uses the content instead of the title of the event. Is there a way to change this so that it uses the title?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-11-04 17:34:29 +0800

mhlic gravatar image mhlic
38 3

Including this script was an answer to the issue:

<script><![CDATA[
     zk.afterLoad('calendar', function() {
      var _xDayOfMonthEvent = {}
      zk.override(calendar.DayOfMonthEvent.prototype, _xDayOfMonthEvent, {
       redraw: function(out) {
        var ce = this.event,
         id = ce.id,
         headerColor = ce.headerColor,
         headerStyle = headerColor ? ' style="color:' + headerColor + '"': '',
         contentStyle = headerStyle,
         zcls = this.getZclass(),
         header = zcls + "-header",
         content = zcls + "-cnt";

        this.uuid = id;

        out.push('<div', this.domAttrs_(), '>',
          '<span id="', id, '-hd" class="', header, '"', headerStyle, '>', zk.fmt.Date.formatDate(ce.zoneBd,'HH:mm'), '&nbsp;</span>',
          '<span id="', id, '-cnt" class="', content, '"', contentStyle, '>', ce.title ? ce.title : ce.content, '</span></div>');
       } //redraw
      }); //override
     }); //afterload;
    ]]></script>
link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2015-10-15 13:40:04 +0800

Seen: 43 times

Last updated: Nov 04 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More