/*
Copyright © 2016-2019 Lidor Systems. All rights reserved.
This file is part of the "IntegralUI Web" Library.
The contents of this file are subject to the IntegralUI Web License, and may not be used except in compliance with the License.
A copy of the License should have been installed in the product's root installation directory or it can be found at
http://www.lidorsystems.com/products/web/studio/license-agreement.aspx.
This SOFTWARE is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language
governing rights and limitations under the License. Any infringement will be prosecuted under applicable laws.
*/
import { Component, ViewContainerRef, ViewChild, ViewChildren, ViewEncapsulation } from '@angular/core';
import { IntegralUIScrollMode } from '../../integralui/components/integralui.core';
@Component({
selector: '',
template: `
IntegralUI ListScroller is a native Angular component that displays a scrollable item list in horizontal or vertical layout. You can specify the item size and add any custom HTML elements or Angular components in each item. In addition, using different CSS styles you can customize the component overall appearance.
The following properties and events are supported:
- controlStyle - Specifies an object that contains all style settings for the component
- data - Specifies an object that holds data related to the component
- enabled - Determines whether the component is enabled or disabled
- items - Gets or sets the collection of items that are assigned to the component
- itemSize - Specifies the width and height of items
- mouseWheelSpeed - Specifies the scrolling speed of the mouse wheel
- name - Uniquely identifies the component
- scrollMode - Specifies whether the view is scrolled horizontally or vertically
- selectedItem - An object that points to the currently selected item
- state - Specifies the component state: disabled, hovered, etc.
- afterSelect - Occurs after item is selected
- beforeSelect - Occurs before item is selected
- clear - Occurs when all items are removed
- itemAdded - Occurs after item is added to the collection
- itemAdding - Occurs before item is added to the collection
- itemRemoved - Occurs after item is removed from the collection
- itemRemoving - Occurs before item is removed from the collection
- scrollModeChanged - Occurs when scrollMode property changes
- scrollPosChanged - Occurs when current scroll position changes
- selectionChanged - Occurs whenever selection changes from one item to another
- updateComplete - Occurs when updating of component layout is completed
For more information check out the source code of this sample (listscroller/listscroller-overview.ts) file.
`,
encapsulation: ViewEncapsulation.None
})
export class ListScrollerOverviewSample {
public ctrlStyle: any = {
item: {
general: {
normal: 'lscrl-ovw-item-normal',
hovered: 'lscrl-ovw-item-hovered',
selected: 'lscrl-ovw-item-selected'
}
}
}
public items: Array