ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
components/ui/sortable
SortableRootProps
Interface SortableRootProps<T>
interface
SortableRootProps
<
T
>
{
value
:
T
[]
;
onValueChange
:
(
value
:
T
[]
)
=>
void
;
getItemValue
:
(
item
:
T
)
=>
string
;
children
:
ReactNode
;
className
?:
string
;
onMove
?:
(
event
:
{
event
:
DragEndEvent
;
activeIndex
:
number
;
overIndex
:
number
}
,
)
=>
void
;
strategy
?:
"horizontal"
|
"vertical"
|
"grid"
;
onDragStart
?:
(
event
:
DragStartEvent
)
=>
void
;
onDragEnd
?:
(
event
:
DragEndEvent
)
=>
void
;
}
Type Parameters
T
Index
Properties
value
on
Value
Change
get
Item
Value
children
class
Name?
on
Move?
strategy?
on
Drag
Start?
on
Drag
End?
Properties
value
value
:
T
[]
on
Value
Change
onValueChange
:
(
value
:
T
[]
)
=>
void
get
Item
Value
getItemValue
:
(
item
:
T
)
=>
string
children
children
:
ReactNode
Optional
class
Name
className
?:
string
Optional
on
Move
onMove
?:
(
event
:
{
event
:
DragEndEvent
;
activeIndex
:
number
;
overIndex
:
number
}
,
)
=>
void
Optional
strategy
strategy
?:
"horizontal"
|
"vertical"
|
"grid"
Optional
on
Drag
Start
onDragStart
?:
(
event
:
DragStartEvent
)
=>
void
Optional
on
Drag
End
onDragEnd
?:
(
event
:
DragEndEvent
)
=>
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
value
on
Value
Change
get
Item
Value
children
class
Name
on
Move
strategy
on
Drag
Start
on
Drag
End
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...