-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathspryevents.js
More file actions
17 lines (13 loc) · 806 Bytes
/
spryevents.js
File metadata and controls
17 lines (13 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
dsOptions = {};
dsOptions.hideDataSourceElement = false;
dsOptions.firstRowAsHeaders = false;
dsOptions.rowSelector=".event";
dsOptions.dataSelector=".eventimage, h2, .location, .date, .description";
dsOptions.columnNames=["eventimage","name","location","displaydate","description"];
dsEvents = new Spry.Data.HTMLDataSet("events_static.html", "mainContent", dsOptions);
Spry.Utils.addLoadListener(function() {
Spry.$$('#locationheader').setAttribute('spry:sort', 'location');
Spry.$$('tr.eventrow').setAttribute('spry:repeat', 'dsEvents').setAttribute('spry:hover', 'rowHover').setAttribute('spry:select', 'rowSelected').setAttribute('spry:setrow', 'dsEvents');
Spry.$$('#masterbox').setAttribute('spry:region', 'dsEvents');
Spry.$$('#detailbox').setAttribute('spry:detailregion', 'dsEvents');
});