GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — NativeScript/ui/button/button.d.ts at master · alvsgithub/NativeScript Expand file tree/ Copy pathbutton.d.tsMore file actions 57 lines (49 loc) · 2.29 KB / Copy pathbutton.d.tsFile metadata and controls57 lines (49 loc) · 2.29 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 /** * Contains the Button class, which represents a standard button widget. */ declare module "ui/button" { import observable = require("data/observable"); import dependencyObservable = require("ui/core/dependency-observable"); import view = require("ui/core/view"); import formattedString = require("text/formatted-string"); /** * Represents a standard Button widget. */ export class Button extends view.View { /** * Represents the observable property backing the text property of each Button instance. */ public static textProperty: dependencyObservable.Property; /** * String value used when hooking to tap event. */ public static tapEvent: string; /** * Gets the native [android widget](http://developer.android.com/reference/android/widget/Button.html) that represents the user interface for this component. Valid only when running on Android OS. */ android: android.widget.Button; /** * Gets the native [UIButton](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIButton_Class/) that represents the user interface for this component. Valid only when running on iOS. */ ios: UIButton; /** * Gets or sets the text (label) displayed by this instance. */ text: string; /** * Gets or sets the formatted text (label) displayed by this instance. */ formattedText: formattedString.FormattedString; /** * A basic method signature to hook an event listener (shortcut alias to the addEventListener method). * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change"). * @param callback - Callback function which will be executed when event is raised. * @param thisArg - An optional parameter which will be used as `this` context for callback execution. */ on(eventNames: string, callback: (data: observable.EventData) => void, thisArg?: any); /** * Raised when a tap event occurs. */ on(event: "tap", callback: (args: observable.EventData) => void, thisArg?: any); } } |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |