Members
Methods
# CustomHeader(props) → {JSX.Element}
Displays the custom date picker header.
Parameters:
Name | Type | Description |
---|---|---|
props |
Object
|
|
date |
Date
|
|
changeYear |
function
|
|
changeMonth |
function
|
|
decreaseMonth |
function
|
|
increaseMonth |
function
|
|
prevMonthDisabled |
Boolean
|
|
nextMonthButtonDisabled |
Boolean
|
JSX.Element
# DataTableBase(DataTableBaseProps) → {JSX.Element}
Basic data table design.
Parameters:
Name | Type | Description |
---|---|---|
DataTableBaseProps |
DataTableBaseProps
|
JSX.Element
# DatePickerBase(DatePickerBasePropsopt) → {JSX.Element}
Basic date picker design.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
DatePickerBaseProps |
Object
|
<optional> |
|
inputId |
String
|
<optional> |
|
selectedValue |
Date
|
null
|
<optional> |
|
handleChange |
handleChange
|
<optional> |
JSX.Element
# filterEmployees(employeeList, userInput) → {Array.<Object>}
Parameters:
Name | Type | Description |
---|---|---|
employeeList |
Array.<Object>
|
|
userInput |
String
|
The list of employees that match the user's search or the initial list if the userInput parameter is an empty string.
Array.<Object>
# FormField(props) → {JSX.Element}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
props |
Object
|
||
children |
String
|
||
label |
String
|
||
labelFor |
String
|
<optional> |
|
errorMessage |
String
|
<optional> |
|
styleModifier |
Object
|
<optional> |
|
styleModifier.container |
String
|
<optional> |
|
styleModifier.label |
String
|
<optional> |
JSX.Element
# SearchBar(SearchBarPropsopt) → {JSX.Element}
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
SearchBarProps |
Object
|
<optional> |
||
filterText |
String
|
<optional> |
"" | |
onFilter |
onFilterCallback
|
<optional> |
(event) => {} | |
onClear |
onClearCallback
|
<optional> |
(event) => {} |
JSX.Element
# SelectBase(SelectProps) → {JSX.Element}
Basic select design.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
SelectProps |
Object
|
||
inputId |
String
|
||
options |
Array.<Object>
|
||
value |
*
|
<optional> |
|
handleChange |
handleChange
|
<optional> |
JSX.Element
# SlidingMenu(SlidingMenuProps) → {JSX.Element}
Parameters:
Name | Type | Description |
---|---|---|
SlidingMenuProps |
Object
|
|
isOpen |
Boolean
|
|
handleTheOpeningToggle |
Boolean
|
JSX.Element
# SuccessModal(SuccessModalProps) → {JSX.Element}
Parameters:
Name | Type | Description |
---|---|---|
SuccessModalProps |
SuccessModalProps
|
JSX.Element
# useDatePicker(date) → {DatePickerState}
Manages the state of the date picker value.
Parameters:
Name | Type | Description |
---|---|---|
date |
Date
|
null
|
Type Definitions
Object
# DataTableBaseProps
Properties:
Name | Type | Description |
---|---|---|
data |
Array.<any>
|
|
defaultSortFieldId |
number
|
|
subHeaderComponent |
React.ReactNode
|
Displays the data table search bar |
noDataComponent |
React.ReactNode
|
Object
# EmployeeInfos
Properties:
Name | Type | Description |
---|---|---|
firstName |
String
|
|
lastName |
String
|
|
startDate |
String
|
|
department |
String
|
|
dateOfBirth |
String
|
|
street |
String
|
|
city |
String
|
|
state |
String
|
|
zipCode |
String
|
# handleChange(date, event) → {void}
Change the value of the date picker when the user clicks on a date or enters one in the text field.
Parameters:
Name | Type | Description |
---|---|---|
date |
Date
|
null
|
|
event |
React.SyntheticEvent.<any, Event>
|
undefined
|
void
# handleChange(newValue, actionMeta) → {void}
Change the value of the select when the user clicks on an option.
Parameters:
Name | Type | Description |
---|---|---|
newValue |
*
|
|
actionMeta |
*
|
void
object
# SuccessModalProps
Properties:
Name | Type | Description |
---|---|---|
isOpen |
boolean
|
|
handleClickOutside |
VoidFunction
|
|
handleClickOnCloseButton |
VoidFunction
|