1.1.0-8 • Published 2 years ago

@qtpiofficial/qt-wc v1.1.0-8

Weekly downloads
-
License
SEE LICENSE IN li...
Repository
github
Last release
2 years ago

Table of Contents generated with DocToc

qt-web-components

A Qt web components UI library.

Installation

npm install qt-web-components

Usage

You can require the whole library:

import * from qt-web-components;

And use in the DOM like this:

<qt-led id="led1"></qt-led>

And then use the API:

const led = document.querySelector('#led1');
led.on();

// close the modal when clicking on it
led.off();

If you want, you can just create the element on your own and add it to the DOM:

const led1 = document.createElement('qt-led');

document.body.appendChild(led1);

led1.on()

API

Modal Window

Tag Name

qt-led

Methods

On

Accepts a config object and on the led.

Off

Off the led

ICD

Config
}

Contributing

  • Clone
  • npm i
  • npm run build to get the build
  • npm run test to test
  • npm run serve to run a development environment