
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
@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
The npm package @tradeshift/elements.basic-table receives a total of 49 weekly downloads. As such, @tradeshift/elements.basic-table popularity was classified as not popular.
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
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.