@nebula.js/sn-tabbed-container
v2.15.0
Published
A container that lets you scroll through charts by using tabs.
Readme
sn-tabbed-container
The tabbed container is a nebula based chart that allows you to switch between charts by using a tab bar.
Contribution
Information about developing and contributing can be found in our contribution guide.
Building
Run the following commands from this package directory.
Run pnpm generate to generate the TypeSpec JSON Schema at tsp-output/@typespec/json-schema/sn-tabbed-container.json. The prepare lifecycle script also runs pnpm generate during installation.
For a production build, run:
pnpm buildThis runs tools/copy-json-schema.js before nebula build, copying the generated schema to api-specification/sn-tabbed-container.json. If the generated schema is missing, the copy script uses the existing schema in api-specification; it fails if neither file exists.
For a development build, run pnpm build:dev. This command does not copy the JSON Schema.
Usage
npm install @nebula.js/sn-tabbed-containerRendering tests
Temporarily, in order to produce/update the linux snapshots, change the "test:e2e": "playwright test" script to "test:e2e": "playwright test --update-snapshots" and let the CI of the PR to produce them before reverting back this change.
The proper solution we need to follow is the one implemented in the nebula-tables (https://github.com/qlik-trial/nebula-tables/blob/main/packages/sn-table/package.json#L38) but currently they are throwing error: Error occured while trying to proxy: localhost:8078/render?....
