fix(docs-infra): rename "title" by "header" to avoid unwanted tooltips (#26396)

Closes #26174

PR Close #26396
This commit is contained in:
William Marques
2018-10-11 13:29:59 +02:00
committed by Misko Hevery
parent ecd473bbce
commit fc6dad40ac
74 changed files with 1281 additions and 1281 deletions
@@ -7,7 +7,7 @@ import { CodeComponent } from './code.component';
* Example usage:
*
* ```
* <code-example language="ts" linenums="2" class="special" title="Do Stuff">
* <code-example language="ts" linenums="2" class="special" header="Do Stuff">
* // a code block
* console.log('do stuff');
* </code-example>
@@ -19,7 +19,7 @@ import { CodeComponent } from './code.component';
<!-- Content projection is used to get the content HTML provided to this component -->
<div #content style="display: none"><ng-content></ng-content></div>
<header *ngIf="title">{{title}}</header>
<header *ngIf="header">{{header}}</header>
<aio-code [ngClass]="classes"
[language]="language"
@@ -27,7 +27,7 @@ import { CodeComponent } from './code.component';
[path]="path"
[region]="region"
[hideCopy]="hidecopy"
[title]="title">
[header]="header">
</aio-code>
`,
})
@@ -41,15 +41,15 @@ export class CodeExampleComponent implements AfterViewInit {
@Input() region: string;
@Input()
set title(title: string) {
this._title = title;
set header(header: string) {
this._header = header;
this.classes = {
'headed-code': !!this.title,
'simple-code': !this.title,
'headed-code': !!this.header,
'simple-code': !this.header,
};
}
get title(): string { return this._title; }
private _title: string;
get header(): string { return this._header; }
private _header: string;
@Input()
set path(path: string) {