1.1.0-8 • Published 3 years ago
@qtpiofficial/qt-wc v1.1.0-8
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 buildnpm run test
to testnpm run serve
to run a development environment
1.1.0-8
3 years ago
1.1.0-7
3 years ago
1.1.0-6
3 years ago
1.1.0-5
3 years ago
1.1.0-4
3 years ago
1.1.0-3
3 years ago
1.1.0
3 years ago
0.0.36
3 years ago
1.0.5
3 years ago
0.0.37
3 years ago
1.1.0-2
3 years ago
1.1.0-1
3 years ago
1.0.4
3 years ago
0.0.32
4 years ago
0.0.33
4 years ago
0.0.34
4 years ago
0.0.35
4 years ago
0.0.31
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago