JSPM

primeng-buddhist-year-datepicker

19.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 47
  • Score
    100M100P100Q68496F
  • License MIT

A PrimeNG v19 compatible Angular datepicker with Buddhist year (BE) calendar support for Thai localization and Buddhist users.

Package Exports

  • primeng-buddhist-year-datepicker
  • primeng-buddhist-year-datepicker/package.json

Readme

๐Ÿ“… Primeng Buddhist Datepicker

This library extends the PrimeNG Datepicker to support Buddhist Year (BE) display.

โœ… Built with Angular CLI
๐Ÿ“ฆ Supports PrimeNG and Angular version mapping as shown below


๐Ÿ”„ Version Compatibility

Angular Version Library Version Install Command
^19.0.0 and above primeng-buddhist-year-datepicker@19 npm i primeng-buddhist-year-datepicker@^19.0.0
^17.0.0 to <19.0.0 primeng-buddhist-year-datepicker@17 npm i primeng-buddhist-year-datepicker@^17.0.0

โš ๏ธ Make sure to match the correct version of the library with your Angular version.


๐Ÿงช Run Demo App

To see the component in action:

npm install
ng serve

๐Ÿงช Import Modules Into Component

import { DatePickerModule } from 'primeng-buddhist-year-datepicker';

How to use

selector datepicker the same as primeng add only [isBudhistYear] = true or false

@Component({
  selector: 'your-component',
  standalone: true,
  imports: [DatePickerModule],
  template: `
    <p-date-picker
      [isBudhistYear]="true"
      dateFormat="dd/mm/yy"
      placeholder="Select a date"
    ></<p-date-picker>
  `
})
export class YourComponent {}