mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
40
nativescript-core/ui/switch/index.d.ts
vendored
40
nativescript-core/ui/switch/index.d.ts
vendored
@@ -1,32 +1,32 @@
|
||||
import { View } from "../core/view";
|
||||
import { Property } from "../core/properties";
|
||||
import { Color } from "../../color";
|
||||
import { View } from '../core/view';
|
||||
import { Property } from '../core/properties';
|
||||
import { Color } from '../../color';
|
||||
|
||||
/**
|
||||
* Represents a switch component.
|
||||
*/
|
||||
export class Switch extends View {
|
||||
public static checkedChangeEvent: string;
|
||||
public static checkedChangeEvent: string;
|
||||
|
||||
/**
|
||||
* Gets the native [android widget](http://developer.android.com/reference/android/widget/Switch.html) that represents the user interface for this component. Valid only when running on Android OS.
|
||||
*/
|
||||
android: any /* android.widget.Switch */;
|
||||
/**
|
||||
* Gets the native [android widget](http://developer.android.com/reference/android/widget/Switch.html) that represents the user interface for this component. Valid only when running on Android OS.
|
||||
*/
|
||||
android: any /* android.widget.Switch */;
|
||||
|
||||
/**
|
||||
* Gets the native iOS [UISwitch](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UISwitch_Class/) that represents the user interface for this component. Valid only when running on iOS.
|
||||
*/
|
||||
ios: any /* UISwitch */;
|
||||
/**
|
||||
* Gets the native iOS [UISwitch](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UISwitch_Class/) that represents the user interface for this component. Valid only when running on iOS.
|
||||
*/
|
||||
ios: any /* UISwitch */;
|
||||
|
||||
/**
|
||||
* Gets or sets if a switch is checked or not.
|
||||
*/
|
||||
checked: boolean;
|
||||
/**
|
||||
* Gets or sets if a switch is checked or not.
|
||||
*/
|
||||
checked: boolean;
|
||||
|
||||
/**
|
||||
* Gets or sets the background color of the Switch when it is turned off.
|
||||
*/
|
||||
offBackgroundColor: Color;
|
||||
/**
|
||||
* Gets or sets the background color of the Switch when it is turned off.
|
||||
*/
|
||||
offBackgroundColor: Color;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user