Socket
Book a DemoInstallSign in
Socket

np-ui-time-picker

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

np-ui-time-picker

Angular 9 Native time picker component.

9.0.2
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

np-ui-time-picker

Angular 9 Native time picker component.

Check demo Here

NPM

$ npm install np-ui-time-picker

HTML

<np-ui-time-picker 
    [(ngModel)]="startTime">
</np-ui-time-picker>

Properties

  • 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.
  • disabled : boolean
    true/false - set component disabled
  • required : boolean
    default value is false. add required attribute to input textbox.
  • defaultOpen : boolean
    Set time picker default open or close.
  • is24Hours: boolean
    if set to true, display 24 hours format for time.
    default value is false.
  • showNowButton : boolean
    Show/hide now button, on click of now button current time will be get selected.
  • placeholder : string
    add placeholder to input box
  • hideSeconds : boolean
    hide seconds dropdown from popup. also add/minus seconds button will be hide.
  • styleClass : string
    set name of css class.

Apis

  • get24hrsTimeFormat()
    return 24 hrs formatted time value
  • get12hrsTimeFormat()
    return 12 hrs formatted time value

Methods

  • 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

License

This project is licensed under the MIT License.

Contributors

Keywords

angular

FAQs

Package last updated on 19 Mar 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.