Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/NilavPatel/np-ui-time-picker-package
angular 8 custom time picker component
https://github.com/NilavPatel/np-ui-time-picker-package
angular angular8 angular9 component custom time-picker
Last synced: 3 months ago
JSON representation
angular 8 custom time picker component
- Host: GitHub
- URL: https://github.com/NilavPatel/np-ui-time-picker-package
- Owner: NilavPatel
- License: mit
- Archived: true
- Created: 2019-07-07T19:29:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-10T03:32:56.000Z (about 4 years ago)
- Last Synced: 2024-05-12T15:37:34.916Z (6 months ago)
- Topics: angular, angular8, angular9, component, custom, time-picker
- Language: TypeScript
- Size: 512 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-angular-components - NilavPatel/np-ui-time-picker-package - angular 8 custom time picker component (UI Components / Form)
README
# np-ui-time-picker
Angular 9 Native time picker component.## Check demo [Here](https://stackblitz.com/edit/np-ui-time-picker9)
## NPM
`$ npm install np-ui-time-picker`## HTML
````html````
## Properties
1. `ngModel` : string
Two way data binding.
if 12 hrs format is set then returns value in **hh:mm:ss tt** format,
and if 24 hrs format is set then returns value in **HH:mm:ss** format.
2. `disabled` : boolean
true/false - set component disabled
3. `required` : boolean
default value is false. add required attribute to input textbox.
4. `defaultOpen` : boolean
Set time picker default open or close.
5. `is24Hours`: boolean
if set to true, display 24 hours format for time.
default value is false.
6. `showNowButton` : boolean
Show/hide now button, on click of now button current time will be get selected.
7. `placeholder` : string
add placeholder to input box
8. `hideSeconds` : boolean
hide seconds dropdown from popup. also add/minus seconds button will be hide.
9. `styleClass` : string
set name of css class.## Apis
1. `get24hrsTimeFormat()`
return 24 hrs formatted time value
2. `get12hrsTimeFormat()`
return 12 hrs formatted time value## Methods
1. `onChange( newValue : string)`
value change event, fired when time value is changed.
in parameter new value will be parsed.## Other np-ui components for Angular
1. [Data grid](https://www.npmjs.com/package/np-ui-data-grid)
2. [Date picker](https://www.npmjs.com/package/np-ui-date-picker)
3. [Time picker](https://www.npmjs.com/package/np-ui-time-picker)
4. [Color picker](https://www.npmjs.com/package/np-ui-color-picker)## License
This project is licensed under the MIT License.## Contributors
![](https://raw.githubusercontent.com/NilavPatel/nilavpatel.github.io/master/images/logo-large.png)