
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
svelte-datatables-net
Advanced tools
svelte-datatables-net is a svelte/sveltekit component that turns data into an interactive HTML table. Inspired by datatables.net.
svelte-datatables-net is a svelte/sveltekit component that turns data into an interactive HTML table.
npm install svelte-datatables-net
To run the examples from /src/routes
:
git clone https://github.com/joaquimnetocel/svelte-datatables-net.git
cd svelte-datatables-net
npm install
npm run dev
createData
: A function to create a state with the data.Search
: A svelte component with a search input.RowsPerPage
: A svelte component with a select input to choose the number of rows per page.Pagination
: A svelte component for pagination.Sort
: A svelte component that enable sorting for a specific column.typeData
: If you are using typescript, it is a type definition for the data state.createData
:PARAMETER | DESCRIPTION | TYPE | REQUIRED | DEFAULT |
---|---|---|---|---|
data | AN ARRAY WITH THE DATA. | Generic[] | YES | - |
searchablekeys | AN ARRAY WITH THE SEARCHABLE COLUMNS (KEYS OF data ). | (keyof Generic)[] | NO | undefined |
searchString | THE SEARCH STRING CAN BE SET PREVIOUSLY WITH THIS PROP. | string | NO | '' (EMPTY STRING) |
rowsPerPage | THE INITIAL NUMBER OF ROWS PER PAGE. | string (NUMERIC STRING OR 'all' ) | NO | 'all' |
sortBy | THE INITIAL SORT COLUMN (A KEY OF data ). | keyof Generic | NO | undefined (NO INITIAL SORTING) |
sortOrder | THE INITIAL SORT ORDER. | 'ascending' OR 'descending' | NO | 'ascending' |
sortFunction | A COMPARE FUNCTION THAT SPECIFIES THE INITIAL SORT ORDER. (MORE DETAILS HERE) | (a: Generic, b: Generic) => number | NO | A STANDARD FUNCTION TO SORT ALPHABETICALLY. |
activePage | ACTIVE PAGE FOR PAGINATION. | number | NO | 1 |
Search
:PROP | DESCRIPTION | TYPE | REQUIRED | DEFAULT |
---|---|---|---|---|
data | data state created with createData | typeData<Generic> | YES | - |
placeholder | SEARCH INPUT PLACEHOLDER. | string | NO | 'Type here...' |
class | CSS CLASSES OF THE SEARCH INPUT. | string | NO | - |
style | CSS STYLES OF THE SEARCH INPUT. | string | NO | - |
Pagination
:PROP | DESCRIPTION | TYPE | REQUIRED | DEFAULT |
---|---|---|---|---|
data | data state created with createData | typeData<Generic> | YES | - |
previous | PREVIOUS BUTTON TEXT. | string | NO | - |
next | NEXT BUTTON TEXT. | string | NO | - |
style | CSS STYLES FOR PAGINATION ITEMS. | string | NO | - |
class | CSS CLASSES FOR PAGINATION ITEMS. | string | NO | - |
styleDisabled | CSS STYLES FOR DISABLED PAGINATION ITEMS. | string | NO | - |
classDisabled | CSS CLASSES FOR DISABLED PAGINATION ITEMS. | string | NO | - |
styleActive | CSS STYLES FOR ACTIVE PAGINATION ITEMS. | string | NO | - |
classActive | CSS CLASSES FOR ACTIVE PAGINATION ITEMS. | string | NO | - |
RowsPerPage
:PROP | DESCRIPTION | TYPE | REQUIRED | DEFAULT |
---|---|---|---|---|
data | data state created with createData | typeData<Generic> | YES | - |
class | CSS CLASSES OF THE SELECT INPUT. | string | NO | - |
style | CSS STYLES OF THE SELECT INPUT. | string | NO | - |
Sort
:PROP | DESCRIPTION | TYPE | REQUIRED | DEFAULT |
---|---|---|---|---|
data | data state created with createData | typeData<Generic> | YES | - |
key | COLUMN TO SORT. | keyof Generic | YES | - |
iconSize | SIZE OF THE SORT ICON | number | NO | 10 |
sortFunction | A COMPARE FUNCTION THAT SPECIFIES THE SORT ORDER. (MORE DETAILS HERE) | (a: Generic, b: Generic) => number | NO | A STANDARD FUNCTION TO SORT ALPHABETICALLY. |
FAQs
svelte-datatables-net is a svelte/sveltekit component that turns data into an interactive HTML table. Inspired by datatables.net.
The npm package svelte-datatables-net receives a total of 93 weekly downloads. As such, svelte-datatables-net popularity was classified as not popular.
We found that svelte-datatables-net demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.