mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Replace knownEvents modules with static strings.
This commit is contained in:
@@ -120,7 +120,7 @@ var _testOnClick = function (views: Array<viewModule.View>) {
|
||||
// <snippet module="ui/button" title="button">
|
||||
// ### Responding to the tap event
|
||||
// ``` JavaScript
|
||||
button.on(buttonModule.knownEvents.tap, function (args: observable.EventData) {
|
||||
button.on(buttonModule.Button.tapEvent, function (args: observable.EventData) {
|
||||
//// Do something
|
||||
// <hide>
|
||||
actualValue = true;
|
||||
|
||||
Reference in New Issue
Block a user