import { CoreBusinessModel } from './core-business.model'; /** * Class representing the news component model */ export class NewsComponentModel extends CoreBusinessModel { /** *

The id of the instance.

*/ id: string; /** *

The name of the default channel

*/ defaultChannel:string; /** *

The List of channels that will appear o ntop of the news component.

*/ channelList: string[]=[]; /** *

Set too true to show the channel icons available.

*/ showChannelList: boolean; /** *

Number of news to show per page.

*/ showItems: number; constructor(values: any = {}) { super(values); this.width="400px"; this.height = "300px"; Object.assign(this, values); if(this.showItems>0) { this.height = ((96*this.showItems)+8+this.showItems+1).toString()+"px"; } } }