Date Picker

pg-datepicker is a fork of NG-ZORRO implementation of Date / Date Range Picker Initial credits go to the author

Importing

First import it to your app module or any submodule as you wish

import { pgDatePickerModule } from '@pages/components/datepicker/datepicker.module';
@NgModule({
  imports: [pgDatePickerModule,...]
})
export class AppModule(){}

How to use

Basic Select with Search

<div class="input-group date col-md-8 p-l-0">
  <pg-datepicker></pg-datepicker>
  <div class="input-group-append">
      <span class="input-group-text">
        <i class="fa fa-calendar"></i>
      </span>
  </div>
</div>

API

The date class component includes the following three forms.

  • pg-datepicker

  • pg-datepicker [Mode='month']

  • pg-rangepicker

Common API

pg-datepicker

pg-rangepicker

Last updated