[ADF-3265] Updated index script to remove brief desc links (#3520)

This commit is contained in:
Andy Stark
2018-06-22 21:47:27 +01:00
committed by Eugenio Romano
parent 5a3ce3d299
commit a746a3e3d4
6 changed files with 84 additions and 79 deletions

View File

@@ -78,7 +78,18 @@ export class MDNav {
}, index);
}
link(test: (element: any) => boolean = () => true, index: number = 0): MDNav {
return this.find((h) => {
return h.type === "link" && test(h);
}, index);
}
links(test: (element: any) => boolean = () => true, index: number = 0): MDNav[] {
return this.findAll((h) => {
return h.type === "link" && test(h);
}, index);
}
list(test: (element: any) => boolean = () => true, index: number = 0): MDNav {
return this.find((h) => {
return h.type === "list" && test(h);