Called before the render method, from a hook in the Inputfield class
We are overriding it here and checking for a datepicker, so that we can make sure jQuery UI is loaded before the InputfieldDatetime.js
Usage
// basic usage
$bool = $inputfieldDatetime->renderReady();
// usage with all arguments
$bool = $inputfieldDatetime->renderReady(Inputfield $parent = null, bool $renderValueMode = false);
Arguments
Name | Type(s) | Description |
---|---|---|
parent (optional) | Inputfield | |
renderValueMode (optional) | bool | Specify true only if this is for |
Return value
bool
True if assets were just added, false if already added.
InputfieldDatetime methods and properties
API reference based on ProcessWire core version 3.0.236