Members
Action
# constant bookmarkAction
Properties:
Name | Type | Description |
---|---|---|
name |
string
|
bookmark |
icon |
ConstructorOfATypedSvelteComponent
|
BookmarkOutline |
Action
# constant deleteAction
Properties:
Name | Type | Description |
---|---|---|
name |
string
|
delete |
icon |
ConstructorOfATypedSvelteComponent
|
TrashBinOutline |
Action
# constant downAction
Properties:
Name | Type | Description |
---|---|---|
name |
string
|
down |
icon |
ConstructorOfATypedSvelteComponent
|
ArrowDownSolid |
Action
# constant editAction
Properties:
Name | Type | Description |
---|---|---|
name |
string
|
edit |
icon |
ConstructorOfATypedSvelteComponent
|
EditOutline |
Action
# constant favoriteAction
Properties:
Name | Type | Description |
---|---|---|
name |
string
|
favorite |
icon |
ConstructorOfATypedSvelteComponent
|
HeartSolid |
Action
# constant infoAction
Properties:
Name | Type | Description |
---|---|---|
name |
string
|
info |
icon |
ConstructorOfATypedSvelteComponent
|
InfoCircleOutline |
Action
# constant notificationAction
Properties:
Name | Type | Description |
---|---|---|
name |
string
|
notification |
icon |
ConstructorOfATypedSvelteComponent
|
BellActiveOutline |
Action
# constant settingsAction
Properties:
Name | Type | Description |
---|---|---|
name |
string
|
settings |
icon |
ConstructorOfATypedSvelteComponent
|
CogOutline |
Action
# constant shareAction
Properties:
Name | Type | Description |
---|---|---|
name |
string
|
share |
icon |
ConstructorOfATypedSvelteComponent
|
ShareNodesOutline |
Methods
# joinClasses(…items) → {string}
Joins an array of classes into a string, removing any falsey values.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
items |
string
|
<repeatable> |
Strings of CSS classes to join. |
string
Type Definitions
# ActionDisablementFunction(item, column, action) → {boolean}
Returns true if the action should be disabled for the row.
Parameters:
Name | Type | Description |
---|---|---|
item |
any
|
The row of data |
column |
ColumnConfig
|
The configuration for the ActionCell's column |
action |
Action
|
The action to disable or enable |
boolean
object
# ActionsCell
Cell containing an array of Button (https://flowbite-svelte.com/docs/components/buttons) components which fire the action event on the grid when clicked.
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
Action[] |
<optional> |
actions - The actions to be displayed inside the cell. | |
buttonClass |
string
|
<optional> |
Class for the cell's buttons. Defaults to 'border-0 p-1'. |
buttonColor |
ButtonColor
|
<optional> |
See https://flowbite-svelte.com/docs/pages/typescript. Defaults to 'light'. |
iconClass |
string
|
<optional> |
Class for the icon to be displayed in the button. Defaults to 'w-4 h-4'. |
object
# ButtonCell
Cell containing a Button (https://flowbite-svelte.com/docs/components/buttons) component.
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
caption |
string
|
<optional> |
Text to be displayed inside the button. |
icon |
ConstructorOfATypedSvelteComponent
|
<optional> |
Icon to be displayed inside the button. |
iconClass |
string
|
<optional> |
CSS class of the icon to be displayed inside the button. |
iconPosition |
'left'
|
'right'
|
<optional> |
Position of the icon, relative to the caption. Defaults to 'right'. |
# CellRenderer(column, item) → {CellValue}
Returns the value for a given column/row combination.
Parameters:
Name | Type | Description |
---|---|---|
column |
ColumnConfig
|
Configuration for the cell's column. |
item |
any
|
Data for the cell's row. |
object
# CheckboxCell
Cell containing a Checkbox
(https://flowbite-svelte.com/docs/forms/checkbox
) component.
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
caption |
string
|
<optional> |
Text to be displayed next to the checkbox. |
# DataCellClassFunction(item, column, value, isFocused, calcClass, defaultClass, appendClass, overrideClass) → {string}
Returns the a class string for a data cell.
Parameters:
Name | Type | Description |
---|---|---|
item |
any
|
Data for the cell's row. |
column |
ColumnConfig
|
Configuration for the cell's column. |
value |
CellValue
|
Value for the data cell, after Column.cellRenderer (if any) has been called. |
isFocused |
boolean
|
True if the cell is focused. |
calcClass |
string
|
Classes as determined by grid and column properties and focus state. |
defaultClass |
string
|
Default classes for a TableBodyCell component as defined by FlowBite. |
appendClass |
string
|
tdClassAppend from DataTable. |
overrideClass |
string
|
tdClassOveride from DataTable. |
string
object
# InputCell
Cell containing an Input
(https://flowbite-svelte.com/docs/forms/input-field
) component.
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
inputType |
string
|
<optional> |
See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types |
object
# MultiSelectCell
Cell containing a MultiSelect (https://flowbite-svelte.com/docs/forms/select#MultiSelect) component.
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
displayProp |
string
|
<optional> |
Property within items which displays in the list. Defaults to 'name'. |
valueProp |
string
|
<optional> |
Property within tems used to populate the cell's value when picked. Defaults to 'id'. |
items |
Array.<any>
|
Array of objects the user can select from. |
object
# NumberInputCell
Cell containing a NumberInput (https://flowbite-svelte.com/docs/forms/input-field#Number_input) component.
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
inputType |
string
|
<optional> |
See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types |
object
# RangeCell
Cell containing a range (https://flowbite-svelte.com/docs/forms/range) component.
Properties:
Name | Type | Description |
---|---|---|
min |
number
|
Passed through. |
max |
number
|
Passed through. |
object
# RatingCell
Cell containing a rating (https://flowbite-svelte.com/docs/components/rating) component.
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
icon |
number
|
<optional> |
Passed through. |
total |
number
|
<optional> |
Passed through. |
# RowClassFunction(item, isFocused, calcClass, defaultClass, appendClass, overrideClass) → {string}
Returns the a class string for a data row.
Parameters:
Name | Type | Description |
---|---|---|
item |
any
|
Data for the cell's row. |
isFocused |
boolean
|
True if a cell on this row is focused. |
calcClass |
string
|
Classes as termined by grid properties. |
defaultClass |
string
|
Default classes for a TableBodyRow component as defined by FlowBite. |
appendClass |
string
|
trClassAppend from DataTable. |
overrideClass |
string
|
trClassOveride from DataTable. |
string
object
# SelectCell
Cell containing a Select (https://flowbite-svelte.com/docs/forms/select) component.
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
displayProp |
string
|
<optional> |
Property within items which displays in the list. Defaults to 'name'. |
valueProp |
string
|
<optional> |
Property within tems used to populate the cell's value when picked. Defaults to 'id'. |
items |
Array.<any>
|
Array of objects the user can select from. |
# SortFunction(a, b) → {number}
Returns a comparison between two values, used for sorting.
Parameters:
Name | Type | Description |
---|---|---|
a |
any
|
First value to compare. |
b |
any
|
Second value to compare. |
number
object
# SpinCell
Cell containing a numeric value and plus and minus buttons. The value is decremented or incremented when the buttons are clicked.
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
decValue |
number
|
<optional> |
Amount to decrement the value by when the minus button is clicked. Defaults to 1. |
incValue |
number
|
<optional> |
Amount to increment the value by when the plus button is clicked. Defaults to 1. |
minValue |
number
|
<optional> |
If specified, the minus button cannot make the value go lower than this. |
maxValue |
number
|
<optional> |
If specified, the plus button cannot make the value go higher than this. |
minusIcon |
ConstructorOfATypedSvelteComponent
|
<optional> |
Svelte component class for the minus icon. Defaults to MinusSolid from https://flowbite.com/icons/ |
minusIconClass |
string
|
<optional> |
CSS class of the minus icon, defaults to 'pr-1 w-3 h-3' |
plusIcon |
ConstructorOfATypedSvelteComponent
|
<optional> |
Svelte component class for the plus icon. Defaults to PlusSolid from https://flowbite.com/icons/ |
plusIconClass |
string
|
<optional> |
CSS class of the plus icon, defaults to 'pr-1 w-3 h-3' |
object
# TabWrapper
Utility component to make tabbing between focused cells work. See InputCell.svelte as an example.
object
# ToggleCell
Cell containing a Toggle (https://flowbite-svelte.com/docs/forms/toggle) component.
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
caption |
string
|
<optional> |
Text to be displayed inside the button. |
Events
object
# action
Properties:
Name | Type | Description |
---|---|---|
detail.action |
string
|
The name property of the action whose button was clicked. |
detail.item |
any
|
Data for the action cell's row. |
detail.column |
ColumnConfig
|
Configuration for the action cell's column. |
object
# cellChanged
Properties:
Name | Type | Description |
---|---|---|
detail.item |
any
|
Data for the cell's row, prior to the change. |
detail.column |
ColumnConfig
|
Configuration for the cell's column. |
detail.oldValue |
any
|
The data value of the cell before the change. |
detail.newValue |
any
|
The new value that needs to be applied to the cell. |
object
# cellClicked
Properties:
Name | Type | Description |
---|---|---|
detail.item |
any
|
Data for the cell's row. |
detail.column |
ColumnConfig
|
Configuration for the cell's column. |
object
# headerClicked
Properties:
Name | Type | Description |
---|---|---|
detail.column |
ColumnConfig
|
Configuration for the header's column. |
detail.sortColumnID |
string
|
The current sortColumnID. |
detail.sortKey |
string
|
The current sortKey. |
detail.sortFunction |
SortFunction
|
The current sortFunction. |
detail.reverseSort |
boolean
|
True if the grid is currently sorting in reverse. |