The rows.find() method returns the JavaScript Scheduler row that matches the specified id or search function.
Search using a row id:
DayPilot.Scheduler.rows.find(id[, start])Search using a function (since version 2019.4.4153):
DayPilot.Scheduler.rows.find(f[, startIndex])id (string | number) - resource id
start (string) - row start date when viewType is set to "Days", in ISO format such as "2020-01-31T00:00:00"
f (function) - find function that returns true if the criteria is met
startIndex (number) - row index where the search should start
Find function syntax:
function f(row) {}Find function parameters:
row - DayPilot.Row object
Returns a DayPilot.Row object if the row is found; otherwise null.
const row = dp.rows.find("A");