Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
@kiwigrid/ngx-daterangepicker
Advanced tools
This date range picker based on https://github.com/jkuri/ng-daterangepicker.
Supported Angular versions:
version | angular version |
---|---|
1.x | 9.x |
0.6.x | 5.x+ |
npm install @kiwigrid/ngx-daterangepicker --save
or
yarn add @kiwigrid/ngx-daterangepicker --save
import { NgxDateRangePickerModule } from '@kiwigrid/ngx-daterangepicker';
// app.module.ts
@NgModule({
...
imports: [ ..., NgxDateRangePickerModule, ... ],
...
})
export class AppModule { }
// app.component.ts
import { Component, OnInit } from '@angular/core';
import {
NgxDateRangePickerOptions,
NgxDateRangePickerOutput,
} from '@kiwigrid/ngx-daterangepicker';
@Component({
selector: 'app-root',
templateUrl: 'app.component.html',
})
export class AppComponent {
value: NgxDateRangePickerOutput;
options: NgxDateRangePickerOptions;
ngOnInit() {
this.options = {
theme: 'default',
range: 'TM',
dayNames: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
presetNames: [
'Today',
'This Week',
'Last 7 Days',
'Last Week',
'This Month',
'Last Month',
'This Year',
'Last Year',
'Start',
'End',
'Apply',
'Cancel',
],
dateFormat: 'yMd',
startOfWeek: 1,
position: 'right',
};
this.value = {
from: 0,
to: 0,
};
}
}
<!-- app.component.html -->
<ngx-daterangepicker
[(ngModel)]="value"
[options]="options"
></ngx-daterangepicker>
export interface NgxDateRangePickerOptions {
theme: 'default' | 'green' | 'teal' | 'cyan' | 'grape' | 'red' | 'gray';
range: 'TD' | 'TM' | 'LM' | 'LW' | 'TW' | 'TY' | 'LY' | 'L7D';
dayNames: string[];
presetNames: string[];
dateFormat: string;
startOfWeek: number;
position: string;
}
git clone https://github.com/kiwigrid/ngx-daterangepicker.git
cd ngx-daterangepicker
npm install
npm start
MIT
FAQs
Angular Datepicker
The npm package @kiwigrid/ngx-daterangepicker receives a total of 6 weekly downloads. As such, @kiwigrid/ngx-daterangepicker popularity was classified as not popular.
We found that @kiwigrid/ngx-daterangepicker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.