NoticeViewImpl.ts
842 Bytes
import { NoticeViewType, NoticeViewProps, NoticeView } from "../type/NoticeView";
import { CCPureView } from "../../../../common/classbase/CCViewBase";
import { RegView } from "../../PresenterCCViewFactory";
import { DummyLabel } from "../../../../common/CCDummyObjects";
const { ccclass, property } = cc._decorator;
@ccclass
@RegView(NoticeViewType, "prefab/ui/NoticeView")
export class NoticeViewImpl extends CCPureView<NoticeViewProps> implements NoticeView {
@property(cc.Label)
titlelbl: cc.Label = DummyLabel;
@property(cc.Label)
contentlbl: cc.Label = DummyLabel;
onLoad() {
this.bindProp("titletxt", this.titlelbl, "string");
this.bindProp("contenttxt", this.contentlbl, "string");
}
onCloseHandleClick(event) {
this._props.onCloseClick();
}
}