Files
NativeScript/ui/segmented-bar/segmented-bar.d.ts
2015-03-09 15:50:28 +02:00

53 lines
1.5 KiB
TypeScript

/**
* Contains the SegmentedBar class, which represents a SegmentedBar component.
*/
declare module "ui/segmented-bar" {
import view = require("ui/core/view");
import dependencyObservable = require("ui/core/dependency-observable");
import color = require("color");
/**
* Represents a SegmentedBar item.
*/
interface SegmentedBarItem {
/**
* Gets or sets the title of the SegmentedBarItem.
*/
title: string;
}
/**
* Represents a UI SegmentedBar component.
*/
export class SegmentedBar extends view.View {
/**
* Gets or sets the selected index of the SegmentedBar component.
*/
selectedIndex: number;
/**
* Gets or sets the selected background color of the SegmentedBar component.
*/
selectedBackgroundColor: color.Color;
/**
* Gets or sets the items of the SegmentedBar.
*/
items: Array<SegmentedBarItem>;
/**
* Gets or sets the selected index dependency property of the SegmentedBar.
*/
public static selectedIndexProperty: dependencyObservable.Property;
/**
* Gets or sets the selected background color property of the SegmentedBar.
*/
public static selectedBackgroundColorProperty: dependencyObservable.Property;
/**
* Gets or sets the items dependency property of the SegmentedBar.
*/
public static itemsProperty: dependencyObservable.Property;
}
}