mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Adds a "required" and "requiredMessage" key to component properties. If a required field does not have a requiredMessage, a default message of "Required fields were left blank." will be used. Example usage... ```php public function defineProperties() { return [ 'maxItems' => [ 'title' => 'Max items', 'description' => 'The most amount of todo items allowed', 'type' => 'string', 'required' => true, 'requiredMessage' => 'You must set the maximum todo items allowed!' ] ]; } ```