
Research
/Security News
GlassWASM: WebAssembly Malware Found in Trojanized Open VSX Extensions
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.
@mediakular/svelte-data-grid
Advanced tools
Everything you need to build a Svelte library, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
@mediakular/svelte-data-grid is a powerful data grid package tailored for Sveltekit applications. It offers an array of features to elevate the presentation and interaction with tabular data.
Coming soon
npm install @mediakular/svelte-data-grid
or
yarn add @mediakular/svelte-data-grid
Most basic usage:
import { Grid, GridColumn } from '@mediakular/svelte-data-grid';
// Define your data and columns
let clients = getClientsFromDb();
let columns = [...];
<Grid
bind:data={clients}
bind:columns={columns}>
</Grid>
Here a more advanced usage with column definition.
interface Client {
id: string;
firstname: string;
lastname: string;
avatar: string;
email: string;
age: number;
birthdate: Date;
amount: number;
quantity: number;
}
let clients: Client[] = getClientsFromDb();
let columns: GridColumn<Client>[] = [
{
key: 'name',
title: 'Name',
accessor: (row: Client) => {
return {
avatar: row.avatar,
firstname: row.firstname,
lastname: row.lastname,
email: row.email
}
},
sortValue: (row: Client) => {
return `${row.firstname} ${row.lastname}`
},
renderComponent: ClientCell,
},
{
key: 'age',
title: 'Age',
accessor: (row: Client) => { return row.age },
},
{
key: 'birthdate',
title: 'Birthday',
renderComponent: DateCell,
sortValue: (row: Client) => {
return row.birthdate;
},
accessor: (row: Client) => { return { value : row.birthdate } },
},
{
key: 'total',
title: 'Total',
accessor: (row: Client) => { return row.amount * row.quantity },
renderComponent: CurrencyCell,
},
];
<Grid
bind:data={clients}
bind:columns={columns}>
</Grid>
let itemsPerPage = 10;
let currentPage = 1;
let totalPages = 1;
let totalResults = 0;
let columns: GridColumn<Client>[] = [];
let clients: Client[] = getClientsFromDB() //replace getClientsFromDB with your DB function
<Grid
bind:data={clients}
bind:columns={columns}
bind:currentPage
bind:itemsPerPage
bind:totalPages
bind:totalResults>
</Grid>
<GridFooter bind:currentPage bind:totalPages bind:totalResults bind:itemsPerPage />
Coming soon
Coming soon
Coming soon
Coming soon
Coming soon
Coming soon
key: needs to be the name of the propertytitle: Title of the columnaccessor (optional): returns custom objects or manipulated valuessortValue (optional): returned value will be used for sortingrenderComponent (optional): Reference to a SvelteKit component. Will be used to render the column-cellcellRender (optional): Can be used to render a sveltekit component AND provide custum properties for the component. Those will be automatically injected. { component: MyFancyCellComponent, props: {myVal: 123, other: "abc"} }visible (optional): Can be set to true/false to show/hide the columnsortable (optional): Can be set to true/false to activate/deactivate sorting of the columnwidth (optional): Width of the column. Either as number (px) or string value "123px" or "1rem" or "33%"This package is licensed under the MIT License.
FAQs
Everything you need to build a Svelte library, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
We found that @mediakular/svelte-data-grid demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Research
/Security News
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.