onTimeRangeSelected: giving 3 value start/end/resource
how can i get more data, wanted access custom values like room category so on...
backend_rooms.php
foreach($rooms as $room) {
$r = new Room();
$r->id = $room['rm_no'];
$r->name = $room['rm_no'];
$r->rm_cat = $room['rm_Cat'];
$r->capacity = 2;
$r->status = $room['status_f'];
$result[] = $r;
}
header('Content-Type: application/json');
echo json_encode($result);
index.php/onTimeRangeSelected
How can i access rm_cat in onTimeRangeSelected event?
dp.onTimeRangeSelected = function (args) {
How can i access rm_cat here
//var name = prompt("New event name:", "Event");
//if (!name) return;
console.log ( args );
var modal = new DayPilot.Modal();
modal.closed = function () {
dp.clearSelection();
// reload all events
var data = this.result;
if (data && data.result === "OK") {
loadEvents();
}
};