This package will help us draw layout application.
This package installed in Vn Native version 3. To install it
`npm install vnnative3-webview`
To use it us need
`import VnNative3HTMLElement from 'vnnative3-webview/dist/HTMLElement/index';`
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"
})
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"
})
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"
});
(new VnNative3HTMLElement).remove(element_id)
Licence : MIT