Skip to content
Snippets Groups Projects
Commit a0696dc6 authored by Piotr Po's avatar Piotr Po
Browse files

Merge branch 'devel' into 'master'

feat: date field

See merge request !24
parents 4a0aa3ca ecd989f9
No related branches found
No related tags found
2 merge requests!24feat: date field,!19Add strong typing for 3.0 version
Pipeline #6609 passed with warnings with stages
in 1 minute and 46 seconds
# Changelog # Changelog
## [2.4.11] - 2021-12-03
### Added
- Added date input field
## [2.4.10] - 2021-10-01 ## [2.4.10] - 2021-10-01
### Changed ### Changed
- Render form data without using echo - Render form data without using echo
......
<?php
namespace WPDesk\Forms\Field;
use WPDesk\Forms\Sanitizer\TextFieldSanitizer;
class DateField extends BasicField {
public function __construct() {
parent::__construct();
$this->set_placeholder('YYYY-MM-DD');
}
public function get_type() {
return 'date';
}
public function get_template_name() {
return 'input-text';
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment