12.07.2015 Views

Using Zen Components - InterSystems Documentation

Using Zen Components - InterSystems Documentation

Using Zen Components - InterSystems Documentation

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Finder PaneAttributestartTimeviewDescriptionStarting time for the daily time slots to be displayed on the schedule calendar. Thisis an integer expressing the number of minutes since midnight. The default startTimeis 480, which means 8 a.m. The range for startTime is 0 through 1440, which coversall 24 hours in the day.If the end user schedules an appointment that falls outside the startTime and endTime,the calendar expands to display that time slot.The startTime value can be a literal string, or it can contain a <strong>Zen</strong> #()# runtimeexpression.Specifies what type of schedule to display. Possible values are "day", "week", or"month". The default is "day". The view value can be a literal string, or it can containa <strong>Zen</strong> #()# runtime expression.When you work with %ZEN.ComponentEx.schedulePane programmatically, you must also know about the followingproperties of the schedulePane class:• Each element provided in the original definition in XData Contents becomes a memberof the schedulePane parameters property, a list collection of %ZEN.Auxiliary.parameter objects. Each acquires an ordinal position in the parameters collection: 1, 2, 3, etc.• The read-only selectedTime property holds the start time of the currently selected time slot in the schedule calendar.The selectedTime is an integer that gives the number of seconds since 0, at midnight.• The read-only selectedInterval property holds the length, in minutes, of the currently selected time slot in the schedulecalendar. Add the selectedInterval to the selectedTime to calculate an end time.9.9 Finder PaneThe component implements a simple browser for hierarchically organized data. Data must be supplied inJavaScript Object Notation (JSON). The <strong>Zen</strong> component provides data in this format. See the section “<strong>Zen</strong>JSON Component” in the book Developing <strong>Zen</strong> Applications.The sample class ZENTest.FinderPaneTest in the SAMPLES namespace, illustrates the use of with . The following example shows the code that creates the JSON component, and sets the OnGetArray callback tothe method GetFinderArray, which is defined in the class.The next example shows the code that creates the finder pane. It sets the ongetdata property of to thegetContentObject method of the component. This method returns the client-side version of the data suppliedby the . The properties onselectitem, ondrawdetails, and ondrawempty are set to methods defined in theclass. has the following attributes:<strong>Using</strong> <strong>Zen</strong> <strong>Components</strong> 257

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!