WinJS.UI Namespace

4 out of 7 rated this helpful - Rate this topic

Provides controls and objects that manipulate data.

The WinJS.UI namespace has these types of members:

Enumerations

EnumerationDescription

AppBarIcon enumeration

Specifies an icon that appears in an AppBarCommand object.

CountResult enumeration

Indicates whether the IListDataAdapter was able to provide a count.

CountError enumeration

Indicates that the IListDataAdapter was unable to provide a count.

DataSourceStatus enumeration

Describes the status of an IListDataSource.

EditError enumeration

Specifies the type of error that occurred during an edit operation on a IListDataSource or an IListDataAdapter.

FetchError enumeration

Specifies the type of error encountered when retrieving items from an IListDataAdapter.

ListViewAnimationType enumeration

Specifies that type of animation for which a contentanimating event was raised.

SelectionMode enumeration

Specifies the selection mode of a ListView.

SwipeBehavior enumeration

Specifies whether elements are selected when the user performs a swipe interaction.

TapBehavior enumeration

Specifies how items in a ListView respond to the tap interaction.

 

Objects

ObjectDescription

AppBar object

Represents an application toolbar for displaying commands.

AppBarCommand object

Represents a command to be displayed in an app bar.

DatePicker object

Allows users to pick a date value.

DOMEventMixin object

Adds event-related methods to the control.

FlipView object

Displays a collection, such as a set of photos, one item at a time.

Flyout object

Displays lightweight UI that is either information, or requires user interaction. Unlike a dialog, a Flyout can be light dismissed by clicking or tapping off of it.

GridLayout object

Represents a grid layout for the ListView in which items are arranged horizontally and vertically.

HtmlControl object

Enables you to include an HTML page dynamically. As part of the constructor, you must include an option indicating the URI of the page.

Layout object

This object supports the Windows Library for JavaScript infrastructure and is not intended to be used directly from your code.

ListLayout object

Represents a layout for the ListView in which items are arranged in a vertical list.

ListView object

Displays data items in a customizable list or grid.

Menu object

Represents a menu flyout for displaying commands.

MenuCommand object

Represents a command to be displayed in a Menu object.

Rating object

Lets the user rate something by clicking an icon that represents a rating. The Rating control can display three types of ratings: an average rating, a tentative rating, and the user's rating.

SemanticZoom object

Enables the user to zoom between two different views supplied by two child controls. One child control supplies the zoomed-out view and the other provides the zoomed-in view.

SettingsFlyout object

Provides users with fast, in-context access to settings that affect the current Windows Store app.

StorageDataSource object

A type of IListDataSource that provides read-access to an object that implements the IStorageQueryResultBase interface. A StorageDataSource enables you to query and bind to items in the data source.

TabContainer object

Prevents a DOM sub-tree from receiving tab navigations and focus.

TimePicker object

Allows users to select time values.

ToggleSwitch object

A control that lets the user switch an option between two states: on (checked is set to true) and off (checked is set to false).

Tooltip object

Displays a tooltip that can contain images and formatting.

ViewBox object

Scales a single child element to fill the available space without resizing it. This control reacts to changes in the size of the container as well as changes in size of the child element. For example, a media query may result in a change in aspect ratio.

VirtualizedDataSource object

Serves as the base class for a custom IListDataSource.

 

Interfaces

InterfaceDescription

IFetchResult interface

Contains items that were requested from an IListDataAdapter and provides some information about those items.

IItem interface

Represents an item in a list.

IItemPromise interface

Provides a mechanism for retrieving IItem objects asynchronously.

ILayout object

Represents a layout for the ListView.

IListBinding interface

Retrieves items from a IListDataSource, enumerates the contents of a IListDataSource, and can optionally register for change notifications.

IListDataAdapter interface

Accesses data for an IListDataSource.

IListDataNotificationHandler interface

Notifies clients when an IListDataAdapter object's data changes.

IListDataSource interface

Provides access to a data source and enables you to bind, change, add, remove, and move items in that data source.

IListNotificationHandler interface

Used by an IListBinding to provide change notifications when items in a IListDataSource change.

ISelection interface

Represents a selection of ListView items.

ISelectionRange object

Represents a range of indexes or keys in an ISelection.

ILayoutSite interface

Represents a rendering site for an ILayout.

IZoomableView interface

Supports semantic zoom functionality by exposing a control as either the zoomed in or the zoomed out view of the SemanticZoom control.

 

Functions

FunctionDescription

computeDataSourceGroups function

Returns a new IListDataSource that adds group information to the items of another IListDataSource.

disableAnimations function

Used to disables all Animations Library and ListView animations. Calling this function does not guarantee that the animations will be disabled, as the determination is made based on several factors.

enableAnimations function

Used to enable all Animations Library and ListView animations. Calling this function does not guarantee that the animations will be enabled, as the determination is made based on several factors.

eventHandler function

Marks a event handler function as being compatible with declarative processing.

executeAnimation function

Asynchronously executes a collection of CSS animations on a collection of elements. This is the underlying animation mechanism used by the Animations Library. Apps are encouraged to use the Animations Library to conform with the standard look and feel of the rest of the system, rather than calling this function directly.

executeTransition function

Asynchronously executes a collection of CSS transitions on a collection of elements. This is the underlying animation mechanism used by the Animations Library. Apps are encouraged to use the Animations Library to conform with the standard look and feel of the rest of the system, rather than calling this function directly.

getItemsFromRanges method

Retrieves the items in the specified index range.

isAnimationEnabled function

Determines whether the Animations Library and ListView animations will be performed if called.

processAll function

Applies declarative control binding to all elements, starting at the specified root element.

process function

Applies declarative control binding to the specified element.

scopedSelect function

Walks the DOM tree from the given element to the root of the document. Whenever a selector scope is encountered, this method performs a lookup within that scope for the specified selector string. The first matching element is returned.

setControl function

Given a DOM element and a control, attaches the control to the element.

setOptions function

Adds the set of declaratively specified options (properties and events) to the specified control. If name of the options property begins with "on", the property value is a function and the control supports addEventListener. setControl calls addEventListener on the control.

 

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

 

 

Build date: 12/5/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.