Files
NativeScript/ui/segmented-bar/segmented-bar.d.ts
2015-03-03 10:34:40 +02:00

42 lines
1.1 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");
/**
* Represents a SegmentedBar entry.
*/
interface SegmentedBarEntry {
/**
* Gets or sets the title of the SegmentedBarEntry.
*/
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 items of the SegmentedBar.
*/
items: Array<SegmentedBarEntry>;
/**
* Gets or sets the selected index dependency property of the SegmentedBar.
*/
public static selectedIndexProperty: dependencyObservable.Property;
/**
* Gets or sets the items dependency property of the SegmentedBar.
*/
public static itemsProperty: dependencyObservable.Property;
}
}