Constructor
new Track(props)
Parameters:
Name | Type | Description |
---|---|---|
props |
Object | React component props |
Extends
- React.Component
Members
(static) propTypes
Accepted propTypes of Track
Properties:
Name | Type | Description |
---|---|---|
children |
function | |
classNames |
function | |
onTrackMouseDown |
function | |
percentages |
function |
clientRect :ClientRect
Return the clientRect of the component
Type:
- ClientRect
Methods
handleMouseDown(event)
Handle any mousedown event received by the component
Parameters:
Name | Type | Description |
---|---|---|
event |
SyntheticEvent | User event |
handleTouchStart(event)
Handle any touchstart event received by the component
Parameters:
Name | Type | Description |
---|---|---|
event |
SyntheticEvent | User event |
render() → {string}
Render method of the component
Returns:
Component JSX
- Type
- string