initial repository.
changes: $View.events add 'beforeSwitch' and 'afterSwitch' events.
update: $View.switch() will fire event before replacing content.
new: add $View.currentContent for getting current view content.
This commit is contained in:
2024-10-02 11:30:57 +08:00
commit 8817e5da1b
5 changed files with 137 additions and 0 deletions

12
index.ts Normal file
View File

@@ -0,0 +1,12 @@
import 'elexis';
import { $View } from './lib/$View';
declare module 'elexis' {
export namespace $ {
export interface TagNameElementMap {
'view': typeof $View;
}
}
}
$.registerTagName('view', $View)
export * from './lib/$View';