ngx-custom-date-range-selector
v0.0.12
Published
Custom Range Date Selector for Creative Software
Downloads
5
Maintainers
Readme
Custom Date Range Selector
Custom Range Date Selector for Creative Software
Installation
Install with npm
npm i ngx-custom-date-range-selector
Import module
import { NgxCustomDateRangeSelectorModule } from 'ngx-custom-date-range-selector';
Usage
Use in component
import { ICustomDateRangeSelector, CustomDateRangeSelectorType } from "ngx-custom-date-range-selector";
customDate: ICustomDateRangeSelector = {
dateStart: initDate,
dateEnd: endDate,
typeSelector: CustomDateRangeSelectorType.LastThirtyDays
}
onChange(event: ICustomDateRangeSelector) {
this.customDate = event;
}
Use in HTML
<app-custom-date-range-selector
[customDateRangeSelector]="customDate"
(change)="onChange($event)">
</app-custom-date-range-selector>
Properties
ICustomDateRangeSelector
| Parameter | Type | Description |
|:-|:-|:-|
| dateStart
| Date
| Initial date |
| dateEnd
| Date
| End date |
| typeSelector
| CustomDateRangeSelectorType
| Selector enum type |
| cancel
| boolean
| show cancel button |
CustomDateRangeSelectorType
| Enum |
|:-|
| Today
|
| Yesterday
|
| LastSevenDays
|
| LastWeek
|
| LastTwoWeeks
|
| LastThirtyDays
|
| ThisMonth
|
| LastMonth
|
| CustomRange
|
Documentation
Tech Stack
Angular 13+, Javascript