Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@neoprospecta/angular-datetimepicker

Package Overview
Dependencies
Maintainers
6
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neoprospecta/angular-datetimepicker

Stable Datetimepicker to use across Neoprospecta sites

latest
Source
npmnpm
Version
4.0.19
Version published
Maintainers
6
Created
Source

Neoprospecta DatetimePicker

A plugin to pick date and time.

Instalation

npm install @neoprospecta/angular-datetimepicker

##Usage Load the DatetimePickerModule in your odule

import { DatetimePickerModule } from '@neoprospecta/angular-datetimepicker';

Use it in your tamplate

<np-datetime-picker
	[(ngModel)]="sample.sampling_date"
	name="sampling_date"
	placeholder="Data coleta"
	close-on-select="true"
	date-format="dd/MM/yyyy"
	date-only="true"
	(change)="doSomethingWithTheChoosenDate"
></np-datetime-picker>

##Options

AttributeTypeDefaultfunction
namestringundefinedThe input name
placeholderstringundefinedThe input placeholder
date-onlybooleanfalseSelect only date
time-onlybooleanfalseSelect only time
close-on-selectbooleanfalseClose the dialog when a date is selected
date-formatstringyyyy-MM-ddThe date format that sould be displayed in the picker
first-day-of-weeknumbersundayThe first day of the week
default-valuestringundefinedThe default value to be used in the picker
minute-stepnumber1The step size of the minute selection slider
min-dateDateundefinedThe minimum accepted date
max-dateDateundefinedThe maximum accepted date
min-hournumberundefinedThe minimum accepted hour
max-hournumberundefinedThe maximum accepted hour
disabled-datesArrayundefinedA list of dated that cannot be selected

API

The change method is called when the input value changes. With it you can do some custom work when a date is selected.

Keywords

Angular

FAQs

Package last updated on 15 Sep 2017

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