Revision history [back]

click to hide/show revision 1
initial version

asked 2010-05-11 05:24:53 +0800

ravurisuman gravatar image ravurisuman

arrow buttons are not appearing(invisible) in zk calendar

Hi All, I am using ZK calendar 3.5 version. I have calendar functionality working successfully, I wanted to add to arrow buttons on top of calendar to show the old dates. I have added following code.

Calendar.zul ################################################################ <zk> <window id="win" border="none" apply="org.adempiere.webui.Calendar.CalendarController" height="100%" width="100%">

            <calendars  model="@{win$composer.getCalendarModel}"   id="cal">
    <toolbar sclass="calendar-toolbar">
            <divarrow type="arrow-left" command='cal.previousPage();Events.postEvent("onCreate", label, null);'/>
            <divarrow type="arrow-right" command='cal.nextPage();Events.postEvent("onCreate", label, null);'/>

</toolbar>
</calendars>
            <chart id="piechart" title="Type of Event?" width="400px" height="250px" type="pie" />
</window>

</zk> #####################################################

divArrow.zul

######################################################

<attribute name="onClick"> import org.zkoss.zk.ui.metainfo.*; String command = self.getSpaceOwner().getDynamicProperty("command"); ZScript zscript = ZScript.parseContent(command); zscript.setLanguage("Java"); page.interpret( zscript.getLanguage(), zscript.getContent(page, self), self.getNamespace()); </attribute>

##################################################################

Some how arrow buttons are not appering, when I click on whitespace on top of calendar content is moving i.e. dates in calendar moving perweek. Please help me to fix the problem,

arrow buttons are not appearing(invisible) in zk calendar

Hi All, I am using ZK calendar 3.5 version. I have calendar functionality working successfully, I wanted to add to arrow buttons on top of calendar to show the old dates. I have added following code.

Calendar.zul ################################################################ <zk> <window id="win" border="none" apply="org.adempiere.webui.Calendar.CalendarController" height="100%" width="100%">

            <calendars  model="@{win$composer.getCalendarModel}"   id="cal">
    <toolbar sclass="calendar-toolbar">
            <divarrow type="arrow-left" command='cal.previousPage();Events.postEvent("onCreate", label, null);'/>
            <divarrow type="arrow-right" command='cal.nextPage();Events.postEvent("onCreate", label, null);'/>

</toolbar>
</calendars>
            <chart id="piechart" title="Type of Event?" width="400px" height="250px" type="pie" />
</window>

</zk> #####################################################

divArrow.zul

######################################################

<attribute name="onClick"> import org.zkoss.zk.ui.metainfo.*; String command = self.getSpaceOwner().getDynamicProperty("command"); ZScript zscript = ZScript.parseContent(command); zscript.setLanguage("Java"); page.interpret( zscript.getLanguage(), zscript.getContent(page, self), self.getNamespace()); </attribute>

##################################################################

Some how arrow buttons are not appering, when I click on whitespace on top of calendar content is moving i.e. dates in calendar moving perweek. Please help me to fix the problem,

arrow buttons are not appearing(invisible) in zk calendar

Hi All, I am using ZK calendar 3.5 version. I have calendar functionality working successfully, I wanted to add to arrow buttons on top of calendar to show the old dates. I have added following code.

Calendar.zul ################################################################ <zk> <window id="win" border="none" apply="org.adempiere.webui.Calendar.CalendarController" height="100%" width="100%">

            <calendars  model="@{win$composer.getCalendarModel}"   id="cal">
    <toolbar sclass="calendar-toolbar">
            <divarrow type="arrow-left" command='cal.previousPage();Events.postEvent("onCreate", label, null);'/>
            <divarrow type="arrow-right" command='cal.nextPage();Events.postEvent("onCreate", label, null);'/>

</toolbar>
</calendars>
            <chart id="piechart" title="Type of Event?" width="400px" height="250px" type="pie" />
</window>

</zk> #####################################################

divArrow.zul

######################################################

<attribute name="onClick"> import org.zkoss.zk.ui.metainfo.*; String command = self.getSpaceOwner().getDynamicProperty("command"); ZScript zscript = ZScript.parseContent(command); zscript.setLanguage("Java"); page.interpret( zscript.getLanguage(), zscript.getContent(page, self), self.getNamespace()); </attribute>

##################################################################

Some how arrow buttons are not appering, when I click on whitespace on top of calendar content is moving i.e. dates in calendar moving perweek. Please help me to fix the problem,

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