Year Picker
Add the possibility to choose a year easily in all your forms.
- Builder compatible
- Tailor compatible
Made with ?
Requirements
This plugin needs an OctoberCMS version greater or equal than 2.0 due to Tailor.
Usage
First of all, this plugin saves a year as a string in your database, so, please make sure your field is a String (varchar) type.
From the RainLab.Builder interface : You can select the YearPicker form widget and add your field's attributes like other fields. Moreover, you can choose to put a Min. Year and a Max. Year values to limit the selector's options.
To use it in your fields.yaml file:
your_field: label: "Your label" type: yearpicker minYear: 1997 maxYear: 2050 ...
To use it with Tailor fields:
Just add a field like above, but with type: lp-yearpicker
-
This plugin has not been reviewed yet.
-
1.0.1 |
First version of YearPicker Feb 09, 2023 |
---|