ipsos-components
Version:
Material Design components for Angular
35 lines (29 loc) • 808 B
text/typescript
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {Component} from '@angular/core';
({
moduleId: module.id,
selector: 'menu-demo',
templateUrl: 'menu-demo.html',
styleUrls: ['menu-demo.css'],
})
export class MenuDemo {
selected = '';
items = [
{text: 'Refresh'},
{text: 'Settings'},
{text: 'Help', disabled: true},
{text: 'Sign Out'}
];
iconItems = [
{text: 'Redial', icon: 'dialpad'},
{text: 'Check voicemail', icon: 'voicemail', disabled: true},
{text: 'Disable alerts', icon: 'notifications_off'}
];
select(text: string) { this.selected = text; }
}