https://github.com/steveleetn91/vnnative3-element
https://github.com/steveleetn91/vnnative3-element
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/steveleetn91/vnnative3-element
- Owner: steveleetn91
- License: mit
- Created: 2022-03-15T13:26:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-19T15:03:31.000Z (over 3 years ago)
- Last Synced: 2024-05-07T18:05:08.217Z (about 1 year ago)
- Language: TypeScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vnnative3-element
Support action with Element## How to install ?
npm install vnnative3-element
## Import
import Vnnative3Element from "vnnative3-element/dist/libs/Vnnative3Element"
## How to use
You can use same :Vnnative3Element.forcus(element_id).empty().add("
Hello
");
Or
Vnnative3Element.forcus(element_id).addEventListener( 'click' , (event : Event) => {
alert("OK");
} ).empty().add("Hello
");
Or
Vnnative3Element.forcus(element_id).setAttribute( 'id' , "test");
Or
Vnnative3Element.forcus(element_id).empty().add("
Hello
");