Search
Preparing search index...
The search index is not available
react-konva-grid
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"hooks/useCopyPaste"
Module "hooks/useCopyPaste"
Index
Interfaces
Copy
Props
Functions
use
Copy
Paste
Functions
Const
use
Copy
Paste
use
Copy
Paste
(
__namedParameters
:
{
activeCell
:
null
|
CellInterface
;
getValue
:
(
cell
:
CellInterface
)
=>
any
;
gridRef
:
MutableRefObject
<
{
container
:
HTMLDivElement
|
null
;
focus
:
(
)
=>
void
;
getCellBounds
:
(
coords
:
CellInterface
)
=>
AreaProps
;
getCellCoordsFromOffset
:
(
x
:
number
, y
:
number
)
=>
CellInterface
;
getCellOffsetFromCoords
:
(
coords
:
CellInterface
)
=>
CellPosition
;
getScrollPosition
:
(
)
=>
ScrollCoords
;
getViewPort
:
(
)
=>
ViewPortProps
;
isMergedCell
:
(
coords
:
CellInterface
)
=>
boolean
;
resetAfterIndices
:
(
coords
:
CellInterface
, shouldForceUpdate
?:
undefined
|
false
|
true
)
=>
void
;
resizeColumns
:
(
indices
:
number
[]
)
=>
void
;
resizeRows
:
(
indices
:
number
[]
)
=>
void
;
scrollTo
:
(
scrollPosition
:
ScrollCoords
)
=>
void
;
scrollToItem
:
(
coords
:
OptionalCellInterface
, align
?:
Align
)
=>
void
;
stage
:
typeof
Stage
|
null
}
>
;
onPaste
:
undefined
|
(
(
rows
:
(
null
|
string
)
[]
[]
, activeCell
:
CellInterface
|
null
)
=>
void
)
;
selections
:
SelectionArea
[]
}
)
:
{}
Copy paste hook Usage
useCopyPaste ({ onPaste: (text) => { } })
Parameters
__namedParameters:
{
activeCell
:
null
|
CellInterface
;
getValue
:
(
cell
:
CellInterface
)
=>
any
;
gridRef
:
MutableRefObject
<
{
container
:
HTMLDivElement
|
null
;
focus
:
(
)
=>
void
;
getCellBounds
:
(
coords
:
CellInterface
)
=>
AreaProps
;
getCellCoordsFromOffset
:
(
x
:
number
, y
:
number
)
=>
CellInterface
;
getCellOffsetFromCoords
:
(
coords
:
CellInterface
)
=>
CellPosition
;
getScrollPosition
:
(
)
=>
ScrollCoords
;
getViewPort
:
(
)
=>
ViewPortProps
;
isMergedCell
:
(
coords
:
CellInterface
)
=>
boolean
;
resetAfterIndices
:
(
coords
:
CellInterface
, shouldForceUpdate
?:
undefined
|
false
|
true
)
=>
void
;
resizeColumns
:
(
indices
:
number
[]
)
=>
void
;
resizeRows
:
(
indices
:
number
[]
)
=>
void
;
scrollTo
:
(
scrollPosition
:
ScrollCoords
)
=>
void
;
scrollToItem
:
(
coords
:
OptionalCellInterface
, align
?:
Align
)
=>
void
;
stage
:
typeof
Stage
|
null
}
>
;
onPaste
:
undefined
|
(
(
rows
:
(
null
|
string
)
[]
[]
, activeCell
:
CellInterface
|
null
)
=>
void
)
;
selections
:
SelectionArea
[]
}
active
Cell
:
null
|
CellInterface
get
Value
:
(
cell
:
CellInterface
)
=>
any
(
cell
:
CellInterface
)
:
any
Parameters
cell:
CellInterface
Returns
any
grid
Ref
:
MutableRefObject
<
{
container
:
HTMLDivElement
|
null
;
focus
:
(
)
=>
void
;
getCellBounds
:
(
coords
:
CellInterface
)
=>
AreaProps
;
getCellCoordsFromOffset
:
(
x
:
number
, y
:
number
)
=>
CellInterface
;
getCellOffsetFromCoords
:
(
coords
:
CellInterface
)
=>
CellPosition
;
getScrollPosition
:
(
)
=>
ScrollCoords
;
getViewPort
:
(
)
=>
ViewPortProps
;
isMergedCell
:
(
coords
:
CellInterface
)
=>
boolean
;
resetAfterIndices
:
(
coords
:
CellInterface
, shouldForceUpdate
?:
undefined
|
false
|
true
)
=>
void
;
resizeColumns
:
(
indices
:
number
[]
)
=>
void
;
resizeRows
:
(
indices
:
number
[]
)
=>
void
;
scrollTo
:
(
scrollPosition
:
ScrollCoords
)
=>
void
;
scrollToItem
:
(
coords
:
OptionalCellInterface
, align
?:
Align
)
=>
void
;
stage
:
typeof
Stage
|
null
}
>
on
Paste
:
undefined
|
(
(
rows
:
(
null
|
string
)
[]
[]
, activeCell
:
CellInterface
|
null
)
=>
void
)
selections
:
SelectionArea
[]
Returns
{}
Globals
"
Cell"
"
Grid"
"helpers"
"hooks/use
Auto
Sizer"
"hooks/use
Copy
Paste"
"hooks/use
Editable"
"hooks/use
Pagination"
"hooks/use
Selection"
"hooks/use
Tooltip"
"index"
"types"
"utils"
Copy
Props
use
Copy
Paste
Generated using
TypeDoc
Copy paste hook Usage
useCopyPaste ({ onPaste: (text) => { } })