Board Item
<gstock-board-item>
|
GstockBoardItem
API
Propiedades
| Nombre | Descripción | Reflects | Tipo | Por defecto |
|---|---|---|---|---|
disabled
|
Disables the item and prevents it from being dragged. |
|
boolean
|
false
|
showHandle
show-handle
|
When true, shows a visual handle for dragging. If false, the entire item is draggable. |
|
boolean
|
false
|
handle
|
CSS selector for a custom drag handle element. When specified, only elements matching this selector will trigger drag operations. |
string
|
''
|
|
size
|
The size of the item. |
|
'small' | 'medium' | 'large'
|
'medium'
|
value
|
The value associated with this item. Used for identification and ordering. |
string
|
''
|
|
updateComplete
|
A read-only promise that resolves when the component has finished updating. |
Aprende más sobre atributos y propiedades .
Slots
| Nombre | Descripción |
|---|---|
default
|
The item’s content. |
prefix
|
An prefix or element to show at the start of the item. |
suffix
|
Content to show at the end of the item. |
handle
|
Custom drag handle. If not provided, the entire item is draggable. |
Aprende más sobre slots .
Propiedades personalizadas
| Nombre | Descripción | Default |
|---|---|---|
--background-color
|
The background color of the item. | |
--border-color
|
The border color of the item. | |
--border-radius
|
The border radius of the item. | |
--padding
|
The padding of the item. | |
--transition
|
The transition properties for animations. |
Aprende más sobre propiedades personalizadas .
Partes
| Nombre | Descripción |
|---|---|
base
|
The component’s base wrapper. |
content
|
The item’s content area. |
prefix
|
The prefix container. |
suffix
|
The suffix container. |
handle
|
The drag handle area. |
Aprende más sobre partes CSS .