<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to SettingUp</title><link>https://sourceforge.net/p/timeschedule/wiki/SettingUp/</link><description>Recent changes to SettingUp</description><atom:link href="https://sourceforge.net/p/timeschedule/wiki/SettingUp/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 18 May 2013 12:20:57 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/timeschedule/wiki/SettingUp/feed" rel="self" type="application/rss+xml"/><item><title>SettingUp modified by Zallist</title><link>https://sourceforge.net/p/timeschedule/wiki/SettingUp/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -8,59 +8,66 @@
 # Creating the scheduler
 `TimeScheduler.Options` is where all customizations should go. These should be set before initializing the scheduler.

-**`TimeScheduler.Options.Element`**
+* **`TimeScheduler.Options.Element`**
 ** REQUIRED ** The jQuery element to set the scheduler up on.

-**`TimeScheduler.Options.GetSections`**
+* **`TimeScheduler.Options.GetSections`**
 ** REQUIRED ** The JavaScript function to call to fill up the sections of the scheduler. This is explained in greater detail at the [Showing data](#showing-data) section.

-**`TimeScheduler.Options.GetSchedule`**
+* **`TimeScheduler.Options.GetSchedule`**
 ** REQUIRED ** The JavaScript function to call to fill up the items of the scheduler. This is explained in greater detail at the [Showing data](#showing-data) section.

-**`TimeScheduler.Options.Start`**
+* **`TimeScheduler.Options.Start`**
 The start time of the scheduler as a moment object. It's recommended to use `.startOf('day')` on the moment for a clear starting point.

-**`TimeScheduler.Options.HeaderFormat`**
+* **`TimeScheduler.Options.HeaderFormat`**
 The [momentjs format](http://momentjs.com/docs/#/displaying/format/) to use for the date range displayed as a header.

-**`TimeScheduler.Options.LowerFormat`**
+* **`TimeScheduler.Options.LowerFormat`**
 The [momentjs format](http://momentjs.com/docs/#/displaying/format/) to use for more concise areas, such as in tooltips of events.

-**`MinRowHeight`**
+* **`MinRowHeight`**
 The minimum height, in pixels, that a section should be.

-**`TimeScheduler.Options.Periods`**
+* **`TimeScheduler.Options.Periods`**
 An array denoting what the periods to display are, explained in greater detail at the [Setting up periods](#setting-up-periods) section.

-**`TimeScheduler.Options.SelectedPeriod`**
+* **`TimeScheduler.Options.SelectedPeriod`**
 The name of the period to select by default.

-**`TimeScheduler.Options.ShowCurrentTime`**
+* **`TimeScheduler.Options.ShowCurrentTime`**
 Whether the current time should be marked on the scheduler

-**`TimeScheduler.Options.ShowGoto`**
+* **`TimeScheduler.Options.ShowGoto`**
 Whether the "Go to" button should be displayed.

-**`TimeScheduler.Options.ShowToday`**
+* **`TimeScheduler.Options.ShowToday`**
 Whether the "Today" button should be displayed.

-**`TimeScheduler.Options.Text`**
+* **`TimeScheduler.Options.Text`**
 An object containing the text used in the scheduler, to be easily customized.

-**`TimeScheduler.Options.Events`**
+* **`TimeScheduler.Options.Events`**
 The events that can be hooked into. Explained in greater detail in the [Hooking into events](#hooking-into-events) section.

-**`TimeScheduler.Options.AllowDragging`**
+* **`TimeScheduler.Options.AllowDragging`**
 Whether or not dragging should be allowed.

-**`TimeScheduler.Options.AllowResizing`**
+* **`TimeScheduler.Options.AllowResizing`**
 Whether or not resizing should be allowed. The Start and End markers will still be shown.

 **`TimeScheduler.Options.DisableOnMove`**
 Whether to disable the item after it's been moved. This should be used if you want to force formatting, and disable any chances of the user interacting with the item again before you can store the data.

 # Setting up periods
+[[img src=Periods.png alt=Periods]]
+The **`TimeScheduler.Options.Periods`** array accepts a list of objects with properties which create periods that can be used to traverse the calendar.

+* **`PeriodObj.Name`** - The name is used to select the period and should be unique. **`TimeScheduler.Options.SelectedPeriod`** relies on the Name.
+* **`PeriodObj.Label`** - The label to display on the button.
+* **`PeriodObj.TimeframePeriod`** - The number of minutes between each "Timeframe" of the period.
+* **`PeriodObj.TimeframeOverall`** - The total number of minutes that the period shows.
+* **`PeriodObj.TimeframeHeaders`** - An array of [momentjs formats](http://momentjs.com/docs/#/displaying/format/) which is used to display the header rows at the top of the scheduler. Rather than repeating formats, the scheduler will merge all cells which are followed by a cell which shows the same date. For example, instead of seeing "Tuesday, Tuesday, Tuesday" with "3pm, 6pm, 9pm" below it, you'll instead see "Tuesday" a single time.

 # Showing data

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Zallist</dc:creator><pubDate>Sat, 18 May 2013 12:20:57 -0000</pubDate><guid>https://sourceforge.net2855ab3e7da728c218e21fa1e7ddb2b7b986d91d</guid></item><item><title>SettingUp modified by Zallist</title><link>https://sourceforge.net/p/timeschedule/wiki/SettingUp/</link><description>&lt;div class="markdown_content"&gt;&lt;div class="toc"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#pre-requisites"&gt;Pre-requisites&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#creating-the-scheduler"&gt;Creating the scheduler&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#setting-up-periods"&gt;Setting up periods&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#showing-data"&gt;Showing data&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#hooking-into-events"&gt;Hooking into events&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#updating-a-scheduler-with-new-items"&gt;Updating a scheduler with new items&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;h1 id="pre-requisites"&gt;Pre-requisites&lt;/h1&gt;
&lt;p&gt;First up, make sure you have &lt;a class="" href="http://jquery.com"&gt;jQuery&lt;/a&gt;, &lt;a class="" href="http://jqueryui.com"&gt;jQueryUI&lt;/a&gt; and &lt;a class="" href="http://momentjs.com"&gt;MomentJS&lt;/a&gt; included in your project and referenced on the page you wish to show a calendar.&lt;br /&gt;
If using the example files to start with, all of the required files should already exist.&lt;br /&gt;
Make sure that timelineScheduler.js and timelineScheduler.css are both referenced on the page as well, and if you want basic styling then timelineScheduler.styling.css should be included too.&lt;/p&gt;
&lt;h1 id="creating-the-scheduler"&gt;Creating the scheduler&lt;/h1&gt;
&lt;p&gt;&lt;code&gt;TimeScheduler.Options&lt;/code&gt; is where all customizations should go. These should be set before initializing the scheduler.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;TimeScheduler.Options.Element&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt; REQUIRED &lt;/strong&gt; The jQuery element to set the scheduler up on.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;TimeScheduler.Options.GetSections&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt; REQUIRED &lt;/strong&gt; The JavaScript function to call to fill up the sections of the scheduler. This is explained in greater detail at the &lt;a class="" href="#showing-data"&gt;Showing data&lt;/a&gt; section.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;TimeScheduler.Options.GetSchedule&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt; REQUIRED &lt;/strong&gt; The JavaScript function to call to fill up the items of the scheduler. This is explained in greater detail at the &lt;a class="" href="#showing-data"&gt;Showing data&lt;/a&gt; section.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;TimeScheduler.Options.Start&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;
The start time of the scheduler as a moment object. It's recommended to use &lt;code&gt;.startOf('day')&lt;/code&gt; on the moment for a clear starting point.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;TimeScheduler.Options.HeaderFormat&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;
The &lt;a class="" href="http://momentjs.com/docs/#/displaying/format/"&gt;momentjs format&lt;/a&gt; to use for the date range displayed as a header.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;TimeScheduler.Options.LowerFormat&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;
The &lt;a class="" href="http://momentjs.com/docs/#/displaying/format/"&gt;momentjs format&lt;/a&gt; to use for more concise areas, such as in tooltips of events.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;MinRowHeight&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;
The minimum height, in pixels, that a section should be.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;TimeScheduler.Options.Periods&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;
An array denoting what the periods to display are, explained in greater detail at the &lt;a class="" href="#setting-up-periods"&gt;Setting up periods&lt;/a&gt; section.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;TimeScheduler.Options.SelectedPeriod&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;
The name of the period to select by default.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;TimeScheduler.Options.ShowCurrentTime&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;
Whether the current time should be marked on the scheduler&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;TimeScheduler.Options.ShowGoto&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;
Whether the "Go to" button should be displayed.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;TimeScheduler.Options.ShowToday&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;
Whether the "Today" button should be displayed.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;TimeScheduler.Options.Text&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;
An object containing the text used in the scheduler, to be easily customized.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;TimeScheduler.Options.Events&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;
The events that can be hooked into. Explained in greater detail in the &lt;a class="" href="#hooking-into-events"&gt;Hooking into events&lt;/a&gt; section.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;TimeScheduler.Options.AllowDragging&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;
Whether or not dragging should be allowed.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;TimeScheduler.Options.AllowResizing&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;
Whether or not resizing should be allowed. The Start and End markers will still be shown.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;TimeScheduler.Options.DisableOnMove&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;
Whether to disable the item after it's been moved. This should be used if you want to force formatting, and disable any chances of the user interacting with the item again before you can store the data.&lt;/p&gt;
&lt;h1 id="setting-up-periods"&gt;Setting up periods&lt;/h1&gt;
&lt;h1 id="showing-data"&gt;Showing data&lt;/h1&gt;
&lt;h1 id="hooking-into-events"&gt;Hooking into events&lt;/h1&gt;
&lt;h1 id="updating-a-scheduler-with-new-items"&gt;Updating a scheduler with new items&lt;/h1&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Zallist</dc:creator><pubDate>Sat, 18 May 2013 12:01:46 -0000</pubDate><guid>https://sourceforge.net566b7074e5c98673e69e96d9e873d52f774633c0</guid></item></channel></rss>