DayPilot.Scheduler.rows.find

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 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:

Return Value

Returns a DayPilot.Row object if the row is found; otherwise null.

Example

const row = dp.rows.find("A");

See Also

DayPilot.Row Class

DayPilot.Scheduler.viewType

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript