Socket
Book a DemoInstallSign in
Socket

@dreamworld/dw-date-input

Package Overview
Dependencies
Maintainers
4
Versions
181
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dreamworld/dw-date-input

- A date input element made with [dw-input](https://github.com/DreamworldSolutions/dw-input) use to take date input from the user.

latest
Source
npmnpm
Version
6.0.26
Version published
Maintainers
4
Created
Source

dw-date-input

  • A date input element made with dw-input use to take date input from the user.

Installation

npm install --save @dreamworld/dw-date-input

Usage

  import '@dreamworld/dw-date-input/dw-date-input';

Demo

Events

Triggers value-changed event on value change.

Features

Supports all the features of dw-input like disabled, readOnly, hint etc. Additional features are as below:

  • Takes user input in below formates
    • mm/dd/yyy (Default)
    • dd/mm/yyyy
    • dd-mm-yyyy
    • mm-dd-yyyy
  • Autofills remaining places and formates date
    • e.g. If user enters 1212, value will be 12/12/2019
  • Performs validation and show error message accordingly
    • also performs validation for minDate and maxDate

Examples

Set inputFormat property to set input format

  <dw-date-input label="Date" inputFormat="dd-mm-yyyy" placeholder="Enter date"></dw-date-input>

Use value property to show pre-filled value

  <dw-date-input label="Date" value="02/12/2019"></dw-date-input>

Use minDate and maxDate property for min and max date validation

  <dw-date-input label="Date" minDate="02/12/2019" maxDate="02/12/2020"></dw-date-input>

Keywords

lit

FAQs

Package last updated on 19 Aug 2025

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