Uploaded image for project: 'ZK Calendar'
  1. ZK Calendar
  2. ZKCAL-34

First day of view is forced to "today" if days is not 7

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.1.3
    • 2.1.2
    • None

      as code below, the first day will be Monday if you click 'test change first day' and 'test set day to 7', otherwise the first day will be today.

      <?xml version="1.0" encoding="UTF-8"?>
       
      <zk xmlns="http://www.zkoss.org/2005/zul">
          <button label="test set day and change first day">
          	<attribute name="onClick"><![CDATA[
          		cal.setMold("default");
          		cal.setDays(14);
          		cal.setFirstDayOfWeek("MONDAY");
          	]]></attribute>
          </button>
          <button label="test set day to 7">
          	<attribute name="onClick"><![CDATA[
          		cal.setMold("default");
          		cal.setDays(7);
          	]]></attribute>
          </button>
          <button label="test set day to 14">
          	<attribute name="onClick"><![CDATA[
          		cal.setMold("default");
          		cal.setDays(14);
          	]]></attribute>
          </button>
          <button label="test change first day">
          	<attribute name="onClick"><![CDATA[
          		cal.setFirstDayOfWeek("MONDAY");
          	]]></attribute>
          </button>
          <calendars id="cal" />
      </zk>
      

            vincentjian vincentjian
            benbai benbai
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: