mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00

* Enable chrome-devtools elemets tab * Trigger updates when property is chaned form native * Tslint fixes * Don't run dom-elemet tests in IOS * fix tests * Create package.json * Update package.json * domNode changed to field for performance
52 lines
1.6 KiB
TypeScript
52 lines
1.6 KiB
TypeScript
/**
|
|
* Contains the Slider class, which represents a standard slider component.
|
|
* @module "ui/slider"
|
|
*/ /** */
|
|
|
|
import { View, Property, CoercibleProperty } from "../core/view";
|
|
|
|
/**
|
|
* Represents a slider component.
|
|
*/
|
|
export class Slider extends View {
|
|
/**
|
|
* Gets the native [android widget](http://developer.android.com/reference/android/widget/SeekBar.html) that represents the user interface for this component. Valid only when running on Android OS.
|
|
*/
|
|
android: any /* android.widget.SeekBar */;
|
|
|
|
/**
|
|
* Gets the native iOS [UISlider](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UISlider_Class/) that represents the user interface for this component. Valid only when running on iOS.
|
|
*/
|
|
ios: any /* UISlider */;
|
|
|
|
/**
|
|
* Gets or sets a slider current value. The default value is 0.
|
|
*/
|
|
value: number;
|
|
|
|
/**
|
|
* Gets or sets a slider min value. The default value is 0.
|
|
*/
|
|
minValue: number;
|
|
|
|
/**
|
|
* Gets or sets a slider max value. The default value is 100.
|
|
*/
|
|
maxValue: number;
|
|
}
|
|
|
|
/**
|
|
* Represents the observable property backing the value property of each Slider instance.
|
|
*/
|
|
export const valueProperty: CoercibleProperty<Slider, number>;
|
|
|
|
/**
|
|
* Represents the observable property backing the minValue property of each Slider instance.
|
|
*/
|
|
export const minValueProperty: Property<Slider, number>;
|
|
|
|
/**
|
|
* Represents the observable property backing the maxValue property of each Slider instance.
|
|
*/
|
|
export const maxValueProperty: CoercibleProperty<Slider, number>;
|