Skip to content
Snippets Groups Projects
Commit 5f808c48 authored by potreb's avatar potreb
Browse files

feat: date field

parent 4a0aa3ca
No related branches found
No related tags found
1 merge request!24feat: date field
Pipeline #6541 passed
# Changelog # Changelog
## [2.4.11] - 2021-10-22
### 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.
Please register or to comment