Method XbpDatePicker():setData() Foundation

Assigns a value to the edit buffer.

Syntax
:setData( <dDate> ) --> dDate
Parameters
<dDate>
<dDate> optionally specifies the date that is assigned to the edit buffer. If no code block is contained in the instance variable :dataLink, <dDate> is required. Otherwise, the data code block is evaluated and its return value is used for <dDate>.
Return

This method returns the value assigned to the edit buffer.

Description

The method :setData() assigns a value to the edit buffer. If a code block is contained in the instance variable :dataLink, this is evaluated without arguments and the return value of the code block is assigned to the edit buffer. The code block contained in :dataLink is not evaluated when a value is explicitly specified as a parameter in the call to the method :setData().

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.