b0bcce86d8
* Add CSS naming conventions following Gutenberg’s standards * Update `woo-dashboard` to `woocommerce-layout` * Update admin notice container to new classname standard |
||
---|---|---|
.. | ||
README.md | ||
index.js | ||
preset-periods.js | ||
style.scss |
README.md
Date Picker (Work in Progress)
Select a range of dates or single dates
Usage
<DatePicker period="last_week" compare="previous_year" />
Props
Required props are marked with *
.
Name | Type | Default | Description |
---|---|---|---|
period * |
string |
none | Selected period. today , yesterday , week , last_week , month , last_month , quarter , last_quarter , year , last_year , custom |
compare * |
string |
none | Selected period to compare. previous_period , previous_year |
start |
string |
none | If a custom period is selected, this is the start date |
end |
string |
none | If a custom period is selected, this is the end date |