2
0
mirror of https://github.com/esiur/iui.git synced 2025-05-06 06:42:58 +00:00

Merge pull request #6 from msal4/main

Emit 'rendered' after data is set
This commit is contained in:
Esiur Project 2022-02-22 14:30:40 +03:00 committed by GitHub
commit 20eeb93edf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@esiur/iui",
"version": "1.1.7",
"version": "1.1.8",
"description": "Interactive User Interface",
"main": "iui.js",
"type": "module",

View File

@ -18,6 +18,7 @@ export default class IUIElement extends HTMLElement {
}
this._register("data");
this._register("rendered");
}
static get moduleName(){
@ -57,6 +58,7 @@ export default class IUIElement extends HTMLElement {
this._data = value;
this._emit("data", {data: value});
await IUI.render(this, value);
this._emit("rendered", {data: value});
}