/** * @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'; @Component({ moduleId: module.id, selector: 'tabs-a11y', templateUrl: 'tabs-a11y.html', styleUrls: ['tabs-a11y.css'], }) export class TabsAccessibilityDemo { // Nav bar demo tabLinks = [ {label: 'Sun', link: 'sunny-tab'}, {label: 'Rain', link: 'rainy-tab'}, {label: 'Fog', link: 'foggy-tab'}, ]; // Standard tabs demo tabs = [ { label: 'German Shepherd', content: `The German Shepherd is a breed of medium to large-sized working dog that originated in Germany. The breed's officially recognized name is German Shepherd Dog in the English language. The breed is also known as the Alsatian in Britain and Ireland.` }, { label: 'Labrador Retriever', extraContent: true, content: `The Labrador Retriever, also Labrador, is a type of retriever-gun dog. The Labrador is one of the most popular breeds of dog in the United Kingdom and the United States.` }, { label: 'Rottweiler', disabled: true, content: `The Rottweiler is a breed of domestic dog, regarded as medium-to-large or large. The dogs were known in German as Rottweiler Metzgerhund, meaning Rottweil butchers' dogs, because their main use was to ...` }, { label: 'Beagle', content: `The Beagle is a breed of small hound, similar in appearance to the much larger foxhound. The beagle is a scent hound, developed primarily for hunting hare.` }, ]; } @Component({ moduleId: module.id, selector: 'sunny-routed-content', template: 'Having a lot of light from the sun.', }) export class SunnyTabContent {} @Component({ moduleId: module.id, selector: 'rainy-routed-content', template: 'A rainy period of time is one when it rains a lot', }) export class RainyTabContent {} @Component({ moduleId: module.id, selector: 'foggy-routed-content', template: 'If the weather is foggy, there is fog', }) export class FoggyTabContent {}