🚀. Socket Launch Week Day 2:Introducing Manifest Alerts.Learn more
Sign In

@nebula.js/sn-text

Package Overview
Dependencies
Maintainers
7
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nebula.js/sn-text

Display text, links, and measures. Add tables with rows and columns. Format and color the text. Add background image and color.

latest
npmnpm
Version
1.9.4
Version published
Maintainers
7
Created
Source

sn-text

A text chart supernova aimed to be used in nebula.js.


import { embed } from '@nebula.js/stardust';
import text from '@nebula.js/sn-text';

// 'app' is an enigma app model
const embeddable = embed(app, {
  types: [{ // register the text chart
    name: 'text',
    load: () => Promise.resolve(text);
  }]
});

embeddable.render({
  element,
  type: 'text',
  properties: {
    text: "{\"root\":{\"children\":[{\"children\":[{\"detail\":0,\"format\":0,\"mode\":\"normal\",\"style\":\"\",\"text\":\"This is some text\",\"type\":\"text\",\"version\":1}],\"direction\":\"ltr\",\"format\":\"\",\"indent\":0,\"type\":\"paragraph\",\"version\":1}],\"direction\":\"ltr\",\"format\":\"\",\"indent\":0,\"type\":\"root\",\"version\":1}}"
  }
});

Requirements

Requires @nebula.js/stardust version >=5.0.0.

Installing

If you use npm: pnpm install @nebula.js/sn-text. You can also load through the script tag directly from any of the CDNs that supports NPM packages, for example: unpkg.

Release

To trigger a release, manually run the build workflow on a release branch and set release to true. For more info on actions / github workflows see: https://github.com/qlik-oss/sn-gh-workflows/

Keywords

qlik

FAQs

Package last updated on 16 Jun 2026

Did you know?

Socket

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.

Install

Related posts