Class ListLayout

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

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(options?: any): ListLayout

Creates a new ListLayout.

constructor

Parameters

  • options?: any optional

    An object that contains one or more property/value pairs to apply to the new ListLayout. Each property of the options object corresponds to one of the object's properties or events. Event names must begin with "on".

Returns

ListLayout

Properties

public backdropColor: string

This property is no longer supported. Starting with Windows Library for JavaScript 2.0, use the .win-listview.win-container.win-backdrop CSS selector.

public disableBackdrop: boolean

This property is no longer supported. Starting with Windows Library for JavaScript 2.0, use the .win-listview.win-container.win-backdrop CSS selector.

public groupHeaderPosition: HeaderPosition

Gets or sets the position of group headers.

public groupInfo: Function

This property is no longer supported. Starting with the Windows Library for JavaScript 2.0, use a CellSpanningLayout.

public horizontal: boolean

This property is no longer supported. Starting with the Windows Library for JavaScript 2.0, use the orientation property instead.

public itemInfo: Function

This property is no longer supported. Starting with the Windows Library for JavaScript 2.0, use a CellSpanningLayout.

public numberOfItemsPerItemsBlock: any

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

public orientation: Orientation

Gets or sets the orientation of the GridLayout.

Methods

public calculateFirstVisible(beginScrollPosition: number, wholeItem: boolean)

This method is no longer supported.

Parameters

  • beginScrollPosition: number
  • wholeItem: boolean

public calculateLastVisible(endScrollPosition: number, wholeItem: boolean)

This method is no longer supported.

Parameters

  • endScrollPosition: number
  • wholeItem: boolean

public dragLeave()

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

public dragOver()

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

public endLayout()

This method is no longer supported.

public executeAnimations()

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

public getItemPosition(itemIndex: number)

This method is no longer supported.

Parameters

  • itemIndex: number

public getKeyboardNavigatedItem(itemIndex: number, element: HTMLElement, keyPressed: any)

This method is no longer supported.

Parameters

  • itemIndex: number
  • element: HTMLElement
  • keyPressed: any

public getScrollbarRange(beginScrollPosition: number, endScrollPosition: number)

This method is no longer supported.

Parameters

  • beginScrollPosition: number
  • endScrollPosition: number

public hitTest(x: number, y: number)

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

Parameters

  • x: number

    The x-coordinate, or the horizontal position on the screen.

  • y: number

    The y-coordinate, or the vertical position on the screen.

public init()

This method is no longer supported.

public initialize()

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

public itemsAdded(elements: any)

This method is no longer supported.

Parameters

  • elements: any

public itemsFromRange(firstPixel: number, lastPixel: number)

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

Parameters

  • firstPixel: number
  • lastPixel: number

public itemsMoved()

This method is no longer supported.

public itemsRemoved(elements: any)

This method is no longer supported.

Parameters

  • elements: any

public layout(tree: any, changedRange: any, modifiedItems: any, modifiedGroups: any)

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

Parameters

  • tree: any
  • changedRange: any
  • modifiedItems: any
  • modifiedGroups: any

public layoutHeader(groupIndex: number, element: any)

This method is no longer supported.

Parameters

  • groupIndex: number
  • element: any

    A DOM element.

public layoutItem(itemIndex: number, element: any)

This method is no longer supported.

Parameters

  • itemIndex: number
  • element: any

    A DOM element.

public prepareHeader(element: HTMLElement)

This method is no longer supported.

Parameters

  • element: HTMLElement

public prepareItem(itemIndex: number, element: any)

This method is no longer supported.

Parameters

  • itemIndex: number
  • element: any

    A DOM element.

public releaseItem(item: any, newItem: any)

This method is no longer supported.

Parameters

  • item: any
  • newItem: any

public reset()

This method is no longer supported.

public setSite(layoutSite: any)

This method is no longer supported.

Parameters

  • layoutSite: any

public setupAnimations()

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

public startLayout(beginScrollPosition: number, endScrollPositionScrollPosition: number)

This method is no longer supported.

Parameters

  • beginScrollPosition: number
  • endScrollPositionScrollPosition: number

public uninitialize()

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

public updateBackdrop(count: number)

This method is no longer supported.

Parameters

  • count: number