/* 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: `

ListScroller / Overview

{{selectedItem.text}}

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:

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 = []; public listEnabled: boolean = true; public selectedItem: any = null; constructor(){ this.items = [ { id: 1, icon: "sci-fi", text: "Sci-Fi" }, { id: 2, icon: "adventure", text: "Adventure", }, { id: 3, icon: "action", text: "Action " }, { id: 4, icon: "drama", text: "Drama" }, { id: 5, icon: "music", text: "Music" }, { id: 6, icon: "comedy", text: "Comedy" }, { id: 7, icon: "biography", text: "Biography" }, { id: 8, icon: "crime", text: "Crime" }, { id: 9, icon: "western", text: "Western" }, { id: 10, icon: "horror", text: "Horror" }, { id: 11, icon: "romance", text: "Romance" } ]; } onSelectionChanged(e: any){ this.selectedItem = e.item; } }