mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3265] Updated index script to remove brief desc links (#3520)
This commit is contained in:
committed by
Eugenio Romano
parent
5a3ce3d299
commit
a746a3e3d4
@@ -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);
|
||||
|
Reference in New Issue
Block a user