Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/calendar/calendar-scheduler.xml
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,23 @@
<category>Scheduler</category>
<description>The association from the resource to the event</description>
</property>
<property key="resourceOrder" type="attribute" required="false" isPath="optional" pathType="reference" entityProperty="resourceEntity">
<caption>Resource Order</caption>
<category>Scheduler</category>
<description>Order of the resource</description>
<attributeTypes>
<attributeType name="Integer" />
</attributeTypes>
</property>
<property key="orderType" type="enumeration" defaultValue="asc">
<caption>Resource Order Type</caption>
<category>Scheduler</category>
<description></description>
<enumerationValues>
<enumerationValue key="asc">ASC</enumerationValue>
<enumerationValue key="desc">DESC</enumerationValue>
</enumerationValues>
</property>
<property key="resourceLabelText" type="string">
<caption>Resource Label Title</caption>
<category>Scheduler</category>
Expand Down
3 changes: 3 additions & 0 deletions src/calendar/widget/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ define([
logger.debug(this.id + "._getResources");
mx.data.get({
xpath: "//" + this.resourceEntity,
filter: {
sort: this.resourceOrder !== "" ? [[this.resourceOrder, this.orderType]] : null
},
callback: lang.hitch(this, function(objs) {
logger.debug(this.id + "._getResources callback:", objs ? objs.length + " objects" : "null");
if (callback) {
Expand Down