
Security News
Open VSX Begins Implementing Pre-Publish Security Checks After Repeated Supply Chain Incidents
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.
@tradeshift/elements.basic-table
Advanced tools
Part of the reusable Tradeshift UI Components as Web Components. Demo
table { width:100%; }| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
| dir | dir | String | ltr | Direction of the component 'rtl' or 'ltr' |
| cols | cols | Array | [] | List of columns configs, including: - property: Property key of the column in data object, - value: value of the title of column', - visibility?: Which screen sizes this column should be visible -> 'always-visible'(default) or 'desktop-only' or 'mobile-only', - size?: 'small' or 'medium' or 'large', - display?: 'left' or 'right' or 'center', - renderer?: you can pass a renderer function to customize the content of the cells in this column, args: (cellValue, rowObject) |
| selectedIds | selectedIds | Array | [] | List of selected rows ids (caveat: the row should include id property) |
| data | data | Array | [] | List of rows data objects |
| Name | Description | Payload |
|---|---|---|
| row-click | Emitted on table row click | { row } |
$ npm i @tradeshift/elements.basic-table --save
import '@tradeshift/elements.basic-table';
or
<script src="node_modules/@tradeshift/elements.basic-table/lib/basic-table.umd.js"></script>
Use it like demo
Our components rely on having the Open Sans available, You can see the font-weight and font-style you need to load here, or you can just load it from our package (for now)
<link rel="stylesheet" href="node_modules/@tradeshift/elements/src/fonts.css" />
For supporting IE11 you need to add couple of things
<!-- Place this in the <head>, before the Web Component polyfills are loaded -->
<script>
if (!window.Promise) {
window.ShadyCSS = { nativeCss: true };
}
</script>
$ npm i @open-wc/polyfills-loader
import loadPolyfills from '@open-wc/polyfills-loader';
loadPolyfills().then(() => import('./my-app.js'));
$ npm i @webcomponents/webcomponentsjs --save
<script src="/node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
@webcomponents/webcomponentsjs<script src="/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js" defer></script>
Thanks for your interest and help!
You can find some links to useful materials about what we are using and some tutorials and articles that can help you get started.
You can see a list of limitations that we should watch out for, here
You can read the full license agreement in the LICENSE.md.
FAQs
Unknown package
We found that @tradeshift/elements.basic-table demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers 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
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.

Research
/Security News
Threat actors compromised four oorzc Open VSX extensions with more than 22,000 downloads, pushing malicious versions that install a staged loader, evade Russian-locale systems, pull C2 from Solana memos, and steal macOS credentials and wallets.

Security News
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.