Members

(constant) DEFAULT_DATE_FORMAT :string

Default date format used by the DatePicker utilities.

Type:
  • string
Since
  • 5.8.6

(constant) defaultCalendarAttributes :object

Default attributes for the ReactCalendar component.

Type:
  • object
Properties
NameTypeDescription
nextLabelstring | JSX.Element

The next button label.

next2Labelstring | JSX.Element

The next2 button label.

onChangefunction

The onChange event handler.

prevLabelstring | JSX.Element

The previous button label.

prev2Labelstring | JSX.Element

The previous2 button label.

Since
  • 4.4.0

(constant) defaultPaginationProps :object

Default props for the ReactPagination component.

Type:
  • object
Properties
NameTypeDescription
activeClassNamestring

The classname for the active page. It is concatenated to base class pageClassName.

activeLinkClassNamestring

The classname for the active page link. It is concatenated to base class pageLinkClassName.

breakAriaLabelsstring

Aria labels of ellipsis elements (Default are { forward: 'Jump forward', backward: 'Jump backward' }).

breakClassNamestring

The classname on tag li of the ellipsis element.

breakLabelstring

The label of the ellipsis element.

breakLinkClassNamestring

The classname on tag a of the ellipsis element.

classNamestring

The classname for the pagination container.

disabledClassNamestring

The classname for disabled previous and next buttons.

disabledLinkClassNamestring

The classname on tag a for disabled previous and next buttons.

disableInitialCallbackboolean

Disable onPageChange callback with initial page. Default: false

hrefAllControlsboolean

By default the hrefBuilder add href only to active controls. Set this prop to true so href are generated on all controls.

initialPagenumber

The initial page selected when the component is first mounted.

marginPagesDisplayednumber

The number of pages to display for margins.

nextAriaLabelstring

The aria label for the next button.

nextClassNamestring

The classname on tag li of the next button.

nextLabelstring

The label for the next button.

nextLinkClassNamestring

The classname on tag a of the next button.

nextPageRelstring

The rel property on the a tag just before the selected page. Default value prev. Set to null to disable.

nextRelstring

The rel propery on the a tag for the next page control. Default value next. Set to null to disable.

pageClassNamestring

The classname on tag li of each page element.

pageCountnumber

The total number of pages.

pageLinkClassNamestring

The classname on tag a of each page element.

pageRangeDisplayednumber

The number of pages to display for margins.

previousAriaLabelstring

The aria label for the previous button.

previousClassNamestring

The classname on tag li of the previous button.

previousLabelstring

The label for the previous button.

previousLinkClassNamestring

The classname on tag a of the previous button.

prevPageRelstring

The rel property on the a tag just before the selected page. Default value prev. Set to null to disable.

prevRelstring

The rel property on the a tag for the previous page control. Default value prev. Set to null to disable.

renderOnZeroPageCountfunction | null

Render component even with zero pages. Default: undefined

selectedPageRelstring

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.

Parameters:
NameTypeDescription
valuenumber

The two-digit year.

Since
  • 5.8.6
Returns:

The expanded four-digit year.

Type: 
number

endCardDrag()

Resets the card drag state.

Since
  • 5.8.4

endColumnDrag()

Resets the column drag state.

Since
  • 5.8.4

formatDateWithPattern(pattern, date) → {string}

Format a date according to a tokenized pattern.

Parameters:
NameTypeDescription
patternstring

The desired output pattern.

dateDate

The date to format.

Since
  • 5.8.6
Returns:

The formatted date string.

Type: 
string

formatValueWithFormat(format, value) → {string}

Normalize any supported value to a formatted string using a pattern or formatter function.

Parameters:
NameTypeDescription
formatstring | function

The format string or formatter function.

value*

The value to format (Date, range, or primitive).

Since
  • 5.8.6
Returns:

The formatted representation.

Type: 
string

getColumnStyle(styleProps, equalGrid) → {object}

Get the column style.

Parameters:
NameTypeDescription
stylePropsobject

The style properties.

equalGridboolean

Whether the grid is equal or not.

Since
  • 4.3.0
Returns:

The column style.

Type: 
object

getPlacement(align, placement, popoverRef, triggerRef, containerRef) → {object}

Calculate the left and top position based on alignment and placement.

Parameters:
NameTypeDescription
alignstring

The alignment of the popover.

placementstring

The placement of the popover.

popoverRefobject | null

Ref to the popover element.

triggerRefobject | null

Ref to the trigger element.

containerRefobject | null

Ref to the container element.

Since
  • 6.0.1
Returns:

The calculated left and top position for the popover.

Type: 
object

getSegmentsFromFormat(format) → {Array}

Tokenize a format string into literal and token segments.

Parameters:
NameTypeDescription
formatstring

The format template to parse.

Since
  • 5.8.6
Returns:

Ordered list of segment descriptors.

Type: 
Array

getStart(rangeType, date) → {Date}

Get the start date based on range type.

Parameters:
NameTypeDescription
rangeTypestring

The range type, one of century, decade, year, or month.

dateDate

The date object.

Since
  • 4.4.0
Returns:

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
Returns:

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
Returns:

The date object of the start of day for today.

Type: 
Date

isValidDate(value) → {boolean}

Determine whether a value is a valid Date instance.

Parameters:
NameTypeDescription
value*

The value to test.

Since
  • 5.8.6
Returns:

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.

Parameters:
NameTypeAttributesDescription
formatstring | function

The active date format (string tokens only).

rawValuestring

The raw user input value.

caretDigitIndexnumber<nullable>

Optional number of digits before the caret. When provided, returns an object containing { value, caretPosition }.

Since
  • 5.8.6
Returns:

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.

Parameters:
NameTypeDescription
fromIdstring

The id of the column the card is being moved from.

toIdstring

The id of the column the card is being moved to.

fromIndexnumber

The index of the card being moved.

toIndexnumber

The index to move the card to.

itemIdstring

The ID of the card being moved.

Since
  • 5.8.4

moveColumn(fromIndex, toIndex, itemId)

Moves a column from one index to another.

Parameters:
NameTypeDescription
fromIndexnumber

The index of the column being moved.

toIndexnumber

The index to move the column to.

itemIdstring

The ID of the column being moved.

Since
  • 5.8.4

onColumnDrop(item)

Handles the drop event for a column.

Parameters:
NameTypeDescription
itemobject

The item being dropped.

Since
  • 5.8.4

onColumnHover(item, monitor, columnId)

Handles the hover state for a column.

Parameters:
NameTypeDescription
itemobject

The item being dragged.

monitorobject

The drag monitor.

columnIdstring

The ID of the column being hovered over.

Since
  • 5.8.4

parseDateFromMaskedValue(format, value) → (nullable) {Date}

Parse a masked date string into a Date instance when valid.

Parameters:
NameTypeDescription
formatstring | function

The format string describing the mask.

valuestring

The masked input value.

Since
  • 5.8.6
Returns:

Parsed date or null when invalid/incomplete.

Type: 
Date

replaceTokens(pattern, replacements) → {string}

Replace all token occurrences in a pattern with provided values.

Parameters:
NameTypeDescription
patternstring

The format pattern to transform.

replacementsArray

Array of replacement definitions { tokens, value }.

Since
  • 5.8.6
Returns:

The formatted string with tokens substituted.

Type: 
string

updateColumnLabel(columnId, newLabelProps)

Updates the label properties of a column.

Parameters:
NameTypeDescription
columnIdstring

The ID of the column to update.

newLabelPropsobject

The new label properties to set.

Since
  • 5.8.4