vnnative3-webview
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Vn Native 3 Webview

This package will help us draw layout application.

How to install

This package installed in Vn Native version 3. To install it

`npm install vnnative3-webview`

How to use

To use it us need

`import VnNative3HTMLElement from 'vnnative3-webview/dist/HTMLElement/index';`

Feature

Empty example

If you wanna empty all of any element, so we can use:

(new VnNative3HTMLElement).empty(element_id)

Or

(new VnNative3HTMLElement).empty(element_id).add(element_id,`<span>{{test}}</span>`,{
    test : "hello world"
})

Add example

You can use it after render view

`(new VnNative3HTMLElement).add(element_id,`<span>{{test}}</span>`,{
    test : "hello world"
})`

Or

`(new VnNative3HTMLElement).next(() => {
    console.log("Do a something.");
}).add(element_id,`<span>{{test}}</span>`,{
    test : "hello world"
})`

Or

(new VnNative3HTMLElement).add(element_id,`<span>{{test}}</span>`,{
    test : "hello world"
}).next(() => {
    console.log("Do a something.");
}).next(() => {
    console.log("Do a something.");
}).next(() => {
    console.log("Do a something.");
}).add(element_id,`<span>{{test}}</span>`,{
    test : "hello world"
})

Make example

let makeExample = (new VnNative3HTMLElement).make(`<span>{{test}}</span>`,{
    test : "hello world"
});

Or

let makeExample = (new VnNative3HTMLElement).next(() => {
    console.log("Do a something.");
}).make(`<span>{{test}}</span>`,{
    test : "hello world"
});

Remove example

(new VnNative3HTMLElement).remove(element_id)

Licence

Licence : MIT

/vnnative3-webview/

    Package Sidebar

    Install

    npm i vnnative3-webview

    Weekly Downloads

    0

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    13.8 kB

    Total Files

    19

    Last publish

    Collaborators

    • tanitech