The rows.find() method returns the JavaScript Scheduler row that matches the specified id or search function.
Declaration
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])Parameters
id(string | number) - resource idstart(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 returnstrueif the criteria is metstartIndex(number) - row index where the search should start
Find function syntax:
function f(row) {}Find function parameters:
row- DayPilot.Row object
Return Value
Returns a DayPilot.Row object if the row is found; otherwise null.
Example
const row = dp.rows.find("A");See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot