Members
(constant) DEFAULT_DATE_FORMAT :string
Default date format used by the DatePicker utilities.
- string
- Since
- 5.8.6
(constant) defaultCalendarAttributes :object
Default attributes for the ReactCalendar component.
- object
| Name | Type | Description |
|---|---|---|
nextLabel | string | | The next button label. |
next2Label | string | | The next2 button label. |
onChange | function | The onChange event handler. |
prevLabel | string | | The previous button label. |
prev2Label | string | | The previous2 button label. |
- Since
- 4.4.0
- Source
(constant) defaultPaginationProps :object
Default props for the ReactPagination component.
- object
| Name | Type | Description |
|---|---|---|
activeClassName | string | The classname for the active page. It is concatenated to base class pageClassName. |
activeLinkClassName | string | The classname for the active page link. It is concatenated to base class pageLinkClassName. |
breakAriaLabels | string | Aria labels of ellipsis elements (Default are { forward: 'Jump forward', backward: 'Jump backward' }). |
breakClassName | string | The classname on tag li of the ellipsis element. |
breakLabel | string | The label of the ellipsis element. |
breakLinkClassName | string | The classname on tag a of the ellipsis element. |
className | string | The classname for the pagination container. |
disabledClassName | string | The classname for disabled previous and next buttons. |
disabledLinkClassName | string | The classname on tag a for disabled previous and next buttons. |
disableInitialCallback | boolean | Disable onPageChange callback with initial page. Default: false |
hrefAllControls | boolean | By default the hrefBuilder add href only to active controls. Set this prop to true so href are generated on all controls. |
initialPage | number | The initial page selected when the component is first mounted. |
marginPagesDisplayed | number | The number of pages to display for margins. |
nextAriaLabel | string | The aria label for the next button. |
nextClassName | string | The classname on tag li of the next button. |
nextLabel | string | The label for the next button. |
nextLinkClassName | string | The classname on tag a of the next button. |
nextPageRel | string | The rel property on the a tag just before the selected page. Default value prev. Set to null to disable. |
nextRel | string | The rel propery on the a tag for the next page control. Default value next. Set to null to disable. |
pageClassName | string | The classname on tag li of each page element. |
pageCount | number | The total number of pages. |
pageLinkClassName | string | The classname on tag a of each page element. |
pageRangeDisplayed | number | The number of pages to display for margins. |
previousAriaLabel | string | The aria label for the previous button. |
previousClassName | string | The classname on tag li of the previous button. |
previousLabel | string | The label for the previous button. |
previousLinkClassName | string | The classname on tag a of the previous button. |
prevPageRel | string | The rel property on the a tag just before the selected page. Default value prev. Set to null to disable. |
prevRel | string | The rel property on the a tag for the previous page control. Default value prev. Set to null to disable. |
renderOnZeroPageCount | function | | Render component even with zero pages. Default: undefined |
selectedPageRel | string | The rel property on the a tag for the selected page. Default value null. Set to null to disable. |
- Since
- 3.3.0
Methods
convertTwoDigitYear(value) → {number}
Convert a two-digit year into a four-digit year using a mid-century pivot.
| Name | Type | Description |
|---|---|---|
value | number | The two-digit year. |
- Since
- 5.8.6
The expanded four-digit year.
- Type:
- number
endCardDrag()
Resets the card drag state.
- Since
- 5.8.4
- Source
endColumnDrag()
Resets the column drag state.
- Since
- 5.8.4
- Source
formatDateWithPattern(pattern, date) → {string}
Format a date according to a tokenized pattern.
| Name | Type | Description |
|---|---|---|
pattern | string | The desired output pattern. |
date | Date | The date to format. |
- Since
- 5.8.6
The formatted date string.
- Type:
- string
formatValueWithFormat(format, value) → {string}
Normalize any supported value to a formatted string using a pattern or formatter function.
| Name | Type | Description |
|---|---|---|
format | string | | The format string or formatter function. |
value | * | The value to format (Date, range, or primitive). |
- Since
- 5.8.6
The formatted representation.
- Type:
- string
getColumnStyle(styleProps, equalGrid) → {object}
Get the column style.
| Name | Type | Description |
|---|---|---|
styleProps | object | The style properties. |
equalGrid | boolean | Whether the grid is equal or not. |
- Since
- 4.3.0
The column style.
- Type:
- object
getPlacement(align, placement, popoverRef, triggerRef, containerRef) → {object}
Calculate the left and top position based on alignment and placement.
| Name | Type | Description |
|---|---|---|
align | string | The alignment of the popover. |
placement | string | The placement of the popover. |
popoverRef | object | | Ref to the popover element. |
triggerRef | object | | Ref to the trigger element. |
containerRef | object | | Ref to the container element. |
- Since
- 6.0.1
- Source
The calculated left and top position for the popover.
- Type:
- object
getSegmentsFromFormat(format) → {Array}
Tokenize a format string into literal and token segments.
| Name | Type | Description |
|---|---|---|
format | string | The format template to parse. |
- Since
- 5.8.6
Ordered list of segment descriptors.
- Type:
- Array
getStart(rangeType, date) → {Date}
Get the start date based on range type.
| Name | Type | Description |
|---|---|---|
rangeType | string | The range type, one of |
date | Date | The date object. |
- Since
- 4.4.0
- Source
The start of range type date object.
- Type:
- Date
getTodayEndOfDay() → {Date}
Get the date object of the end of day for today.
- Since
- 4.4.0
- Source
The date object of the end of day for today.
- Type:
- Date
getTodayStartOfDay() → {Date}
Get the date object of the start of day for today.
- Since
- 4.4.0
- Source
The date object of the start of day for today.
- Type:
- Date
isValidDate(value) → {boolean}
Determine whether a value is a valid Date instance.
| Name | Type | Description |
|---|---|---|
value | * | The value to test. |
- Since
- 5.8.6
True when the value is a valid date.
- Type:
- boolean
maskDateInputValue(format, rawValue, caretDigitIndexnullable) → {string|object}
Apply a format-aware mask to user-entered date text.
| Name | Type | Attributes | Description |
|---|---|---|---|
format | string | | The active date format (string tokens only). | |
rawValue | string | The raw user input value. | |
caretDigitIndex | number | <nullable> | Optional number of digits before the caret. When provided, returns an object containing |
- Since
- 5.8.6
The masked input string or { value, caretPosition } when caret tracking is requested.
- Type:
- string |
object
moveCard(fromId, toId, fromIndex, toIndex, itemId)
Moves a card from one column to another.
| Name | Type | Description |
|---|---|---|
fromId | string | The id of the column the card is being moved from. |
toId | string | The id of the column the card is being moved to. |
fromIndex | number | The index of the card being moved. |
toIndex | number | The index to move the card to. |
itemId | string | The ID of the card being moved. |
- Since
- 5.8.4
- Source
moveColumn(fromIndex, toIndex, itemId)
Moves a column from one index to another.
| Name | Type | Description |
|---|---|---|
fromIndex | number | The index of the column being moved. |
toIndex | number | The index to move the column to. |
itemId | string | The ID of the column being moved. |
- Since
- 5.8.4
- Source
onColumnDrop(item)
Handles the drop event for a column.
| Name | Type | Description |
|---|---|---|
item | object | The item being dropped. |
- Since
- 5.8.4
- Source
onColumnHover(item, monitor, columnId)
Handles the hover state for a column.
| Name | Type | Description |
|---|---|---|
item | object | The item being dragged. |
monitor | object | The drag monitor. |
columnId | string | The ID of the column being hovered over. |
- Since
- 5.8.4
- Source
parseDateFromMaskedValue(format, value) → (nullable) {Date}
Parse a masked date string into a Date instance when valid.
| Name | Type | Description |
|---|---|---|
format | string | | The format string describing the mask. |
value | string | The masked input value. |
- Since
- 5.8.6
Parsed date or null when invalid/incomplete.
- Type:
- Date
replaceTokens(pattern, replacements) → {string}
Replace all token occurrences in a pattern with provided values.
| Name | Type | Description |
|---|---|---|
pattern | string | The format pattern to transform. |
replacements | Array | Array of replacement definitions |
- Since
- 5.8.6
The formatted string with tokens substituted.
- Type:
- string
updateColumnLabel(columnId, newLabelProps)
Updates the label properties of a column.
| Name | Type | Description |
|---|---|---|
columnId | string | The ID of the column to update. |
newLabelProps | object | The new label properties to set. |
- Since
- 5.8.4
- Source