This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-js/lib/src/ui/panel.d.ts
2020-05-06 17:52:06 +08:00

38 lines
1.2 KiB
TypeScript

import { View, Group } from "./view";
import { Root } from '../widget/layouts';
import { BridgeContext } from '../runtime/global';
export declare function NativeCall(target: Panel, propertyKey: string, descriptor: PropertyDescriptor): PropertyDescriptor;
export declare abstract class Panel {
private destroyed;
context: BridgeContext;
onCreate(): void;
onDestroy(): void;
onShow(): void;
onHidden(): void;
abstract build(rootView: Group): void;
private __data__?;
private __root__;
private headviews;
private onRenderFinishedCallback;
private __rendering__;
addHeadView(type: string, v: View): void;
allHeadViews(): IterableIterator<Map<string, View>>;
removeHeadView(type: string, v: View | string): void;
clearHeadViews(type: string): void;
getRootView(): Root;
getInitData(): object | undefined;
private __init__;
private __onCreate__;
private __onDestroy__;
private __onShow__;
private __onHidden__;
private __build__;
private __response__;
private retrospectView;
private nativeRender;
private hookBeforeNativeCall;
private hookAfterNativeCall;
private onRenderFinished;
addOnRenderFinishedCallback(cb: () => void): void;
}