import { Component, Input, Output, EventEmitter, OnInit } from '@angular/core'; import { ListModel } from 'cedrus-project-fusion'; import { ItemStylingModel } from 'cedrus-project-fusion'; import { ButtonModel } from 'cedrus-project-fusion'; @Component ({ moduleId: module.id, selector: 'cf-demo-html-1', templateUrl: './demo.html-1.html', styleUrls: ['./demo.html-1.scss'] }) export class CfDemoHtml1 implements OnInit { myList = new ListModel ({ title: 'List Component Demo' }); items: Object[] = []; itemsStyling: ItemStylingModel; selected = []; ngOnInit(): void { this.items = [ { name: 'Austin', city: 'London', avatar: 'http://wfarm2.dataknet.com/static/resources/icons/set3/c9f1cdf473a8.png' }, { name: 'Molly', city: 'Denver', avatar: 'http://findicons.com/files/icons/1072/face_avatars/300/fh04.png' }, { name: 'Peter', city: 'Tokyo', avatar: 'http://static.tumblr.com/c172fd03bf2bedb77e13107cb22cdcc1/3rxa3xq/asBo7l3wr/tumblr_static_6fbdkgohxjgoc4c8o8kwoso4k.png' } ]; this.itemsStyling = new ItemStylingModel({ item:{ class:"normalItem" }, selectedItem :{ class:"selectedItem" } }) } log(e){ this.selected.push(e); } }