1.0.2 • Published 5 months ago

@maggioli-design-system/mds-input-date-range v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

mds-input-date-range

Properties

PropertyAttributeDescriptionTypeDefault
delaydelaySpecifies the delay in milliseconds before closing the calendar dropdown, if the value is 0 the dropdown will not closenumber500
endDateend-dateSpecifies the end date of the rangestring''
maxmaxSpecifies the max date of the range, user cannot set dates after this datenull \| stringnull
minminSpecifies the min date of the range, user cannot set dates before this datenull \| stringnull
startDatestart-dateSpecifies the start date of the rangestring''

Events

EventDescriptionType
mdsInputDateRangeSelectCustomEvent<{ startDate: string; endDate: string; }>

Methods

preselect(event: EventDate) => Promise<void>

Parameters

NameTypeDescription
eventEventDate

Returns

Type: Promise<void>

updateLang() => Promise<void>

Returns

Type: Promise<void>

CSS Custom Properties

NameDescription
--mds-input-date-range-backgroundSets the background-color of the component
--mds-input-date-range-fields-firefox-justify-contentSets the justify-content of the component in Firefox
--mds-input-date-range-fields-gapSets the gap between the fields of the component
--mds-input-date-range-icon-colorSets the icon color of the component
--mds-input-date-range-ringSets the box-shadow of the component's input to perform the ring effect
--mds-input-date-range-shadowSets the box-shadow of the component's input
--mds-input-date-range-variant-colorSets the variant colors of the component

Dependencies

Depends on

Graph

graph TD;
  mds-input-date-range --> mds-text
  mds-input-date-range --> mds-button
  mds-input-date-range --> mds-dropdown
  mds-input-date-range --> mds-calendar
  mds-button --> mds-spinner
  mds-button --> mds-icon
  mds-button --> mds-text
  mds-calendar --> mds-button
  mds-calendar --> mds-calendar-cell
  mds-calendar-cell --> mds-button
  style mds-input-date-range fill:#f9f,stroke:#333,stroke-width:4px

Built with love @ Gruppo Maggioli from R&D Department