view/index.ts
defaultkavy 8817e5da1b
v0.1.0
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.
2024-10-02 11:30:57 +08:00

12 lines
265 B
TypeScript

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';