getOneOptional<T> method

T getOneOptional <T>(
  1. dynamic locator
)

Gets an optional component reference that matches specified locator.

  • locator the locator to find references by. Returns a matching component reference or null if nothing was found.