antd-super-table v1.3.6
\
A wrapping of the Ant Design table. Can be used to ease the implementation of table views and adds additional features such as an easily configurable action column.
Using the table
In order to use this table, a one time configuration is needed since the package is required (by LEGO) to be private and therefore hosted on our instance of artifactory.
First time setup
In the home directory of your device, create a .npmrc
file with the following content
@lego-integration:registry=https://lego-artifactory.corp.lego.com/artifactory/api/npm/frontend-npm-local/
cafile=/path/to/combined.pem
_auth=<USERNAME>:<PASSWORD> (converted to base 64)
cafile should be the path to combined.pem
which you can download here https://confluence.corp.lego.com/download/attachments/55064920/combined.pem?version=1&modificationDate=1586620265253&api=v2&download=true.
_auth should be your lego-artifactory crendentials seperated with ':' and converted to base 64 - it should look something like this ZGtjYXNs145dÆkdRjenhzcOihQWFydGlmYWN0b3J5JAk1
Installing
npm install @lego-integration/super-table
Note: If npm install
fails with a 404, try removing the first line in .npmrc
and also remove the @lego-integration/ui-framework
entry in package.json
and run npm install
again. Afterwards you should be able to re-add the line in .npmrc
and run npm install
normally from this point on.
Using it
If the table does not appear automatically doing imports try importing it manually like this
import { SuperTable } from "@lego-integration/super-table";
After this it (and its interfaces) should appear from the intellisense in all files.
3 years ago