!2228 toggle支持通用事件

Merge pull request !2228 from luoying_ace/ly0406B
This commit is contained in:
openharmony_ci
2022-04-16 03:12:25 +00:00
committed by Gitee
@@ -36,6 +36,13 @@ void JSToggle::JSBind(BindingTarget globalObj)
JSClass<JSToggle>::StaticMethod("size", &JSToggle::JsSize);
JSClass<JSToggle>::StaticMethod("padding", &JSToggle::JsPadding);
JSClass<JSToggle>::StaticMethod("switchPointColor", &JSToggle::SwitchPointColor);
JSClass<JSToggle>::StaticMethod("onTouch", &JSInteractableView::JsOnTouch);
JSClass<JSToggle>::StaticMethod("onHover", &JSInteractableView::JsOnHover);
JSClass<JSToggle>::StaticMethod("onKeyEvent", &JSInteractableView::JsOnKey);
JSClass<JSToggle>::StaticMethod("onDeleteEvent", &JSInteractableView::JsOnDelete);
JSClass<JSToggle>::StaticMethod("onAppear", &JSInteractableView::JsOnAppear);
JSClass<JSToggle>::StaticMethod("onDisAppear", &JSInteractableView::JsOnDisAppear);
JSClass<JSToggle>::Inherit<JSViewAbstract>();
JSClass<JSToggle>::Bind(globalObj);
}