1.1.1 • Published 11 months ago

date-time-picker-solid v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

dtps-logo 1 (1)

License: Aximsoft(MIT)

An interactive Date and Time Picker for SolidJS.

Installation

npm:

yarn:

yarn add date-time-picker-solid

Note

Include this in your index.html file.

 <link rel="stylesheet" type="text/css" href="node_modules/date-time-picker-solid/dist/style.css">

Example

Here is an example of a basic app using DateTimePicker component:

import { DateTimePicker } from 'date-time-picker-solid'

function App() {
  return <DateTimePicker currentDate={new Date()} />;
}

View the package in action: ( Basic Example )

Preview

Group 4601

Properties

PropsTypeDefault ValueDiscription
currentDateDate/stringMandatory Field, default date for the calendar.
customizeCalendarstring''Add a class name to customize the calendar.
dateFormatstringDD MMM, YYYYDisplayed date format.
enableDateRangeSelectorbooleanFalseEnables date Range Selection.
prevDateDatedayjs().startOf('weeks')Start Date of range selection.
minDateDateundefinedStart Date.
maxDateDateundefinedEnd Date.
childrenJSXElementundefinedAdd child element
closeOnSelectbooleanFalseCloses the calendar after selection.
calendarWidthnumber26remAdjust calendar toggle section. (Note: value should be in rem)
TOGGLE SECTION
customizeCalendarTogglerstring''Add a class name to customize the calendar toggler.
customizeTogglerArrowIconstring''Add a class name to customize input field arrow Icon.
customizeTogglerCalendarIconstring''Add a class name to customize calendar icon.
BODY SECTION
customizeCalendarBodystring''Add a class name to customize calendar body.
NAV SECTION
headerMonthFormatstringMMMDesired month format displayed in the header.
headerYearFormatstringYYYYHeader year view.
enableArrowNavigationbooleanTrueEnables/Disables the navigation.
customizeLeftArrowstring''Add a class name to customize left arrow.
customizeRightArrowstring''Add a class name to customize right arrow.
customizeActiveMonthstring''Add a class name to customize calendar view.
TITLE SECTION
enableDateInputFieldbooleanTrueDisplay selected date.
enableDateInputFieldEditorbooleanTrueMakes selected date editable.
customizeSelectedDatestring''Add a class name to customize selected date view.
enableTodayNavigatorbooleanFalseEnables today navigating button.
customizeTodayNavigatorstring''Add a class name to customize today button.
VIEW SECTION
enableCalendarViewTypebooleanFalseEnables Calendar type switching button.
activeCalendarViewday/month/yeardayActive view
cutomizeCalendarViewButtonsstring''Add a class name to customize view type buttons.
customizeRangeSelectedDatesstring''Add a class name to customize the selected date range.
PICKER SECTION
customizeListViewstring''Add a class name to customize the list.
customizeListHeaderstring''Add a class name to customize the list header.
customizeYearLeftNavigationArrowstring''Add a class name to customize the year view left arrow navigator.
customizeYearRightNavigationArrowstring''Add a class name to customize the year view right arrow navigator.
TIME VIEW SECTION
enableTimeViewbooleanFalseEnables Time view in calendar.
enableTimeEditingbooleanFalseEnables Time editing option in calendar.
customizeTimeViewSwitchstring''Add a class name to customize the time view toggle button.
customizeTimeInputFieldstring''Add a class name to customize the time input field.
customizeTimeUpdateButtonstring''Add a class name to customize the time update button.
customizeConsolidateTimeViewstring''Add a class name to customize the time day and view element.
customizeTimeDownArrowstring''Add a class name to customize the time increase buttons.
customizeTimeUpArrowstring''Add a class name to customize the time decrease buttons. .
renameTimeUpdateButtonstring''To rename the update button.
OUTPUT
calendarResponse(props: type)=>voidCallback to get the values

Dependencies

Let's get connected

License

MIT

1.1.1

11 months ago

1.1.0

11 months ago

1.0.19

11 months ago

1.0.18

11 months ago

1.0.17

11 months ago

1.0.16

11 months ago

1.0.11

11 months ago

1.0.10

11 months ago

1.0.20

11 months ago

1.0.15

11 months ago

1.0.14

11 months ago

1.0.13

11 months ago

1.0.12

11 months ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago