0.0.4 • Published 1 year ago

ngx-mat-persian-datepicker v0.0.4

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

NGX MAT Persian DatePicker

Simplified Angular material datepicker usage for Persian calendar

Installation

Peer Dependencies

npm install material-jalali-moment-adapter @angular/material-moment-adapter @angular/material

Library

npm install ngx-mat-persian-datepicker

Usage

The following usage demonstrate the usage within standalone components, but you can import the component into the NgModules too.

The only mandatory field is Control which is normal FormControl. And it is required due to MatFormField usage.

@Component({
  standalonde: true,
  imports: [NgxMatPersianDatepicker],
  template: `
        <ngx-mat-persian-datepicker
            [control]="formControl"
        ></ngx-mat-persian-datepicker>
    `
})
class myComponent {}

Available Fields

NameTypeUsage
idstringUnique identifier for element
labelstringThe string to display on input as placeholder
errorMessagestringThe message to show in case of error on the control
controlFormControl(From ReactiveFormModule)The FormControl that will be used to store date
0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago