mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-30 17:44:07 +03:00
Add getChildDebugElementAll
This commit is contained in:
parent
dda2b2bbe8
commit
b2c1da25d1
|
@ -10,6 +10,13 @@ export function getChildDebugElement(parent, tagName) {
|
|||
});
|
||||
}
|
||||
|
||||
/** Gets a child DebugElements by tag name. */
|
||||
export function getChildDebugElementAll(parent, tagName) {
|
||||
return parent.queryAll(debugEl => {
|
||||
return debugEl.nativeElement.tagName && debugEl.nativeElement.tagName.toLowerCase() === tagName;
|
||||
});
|
||||
}
|
||||
|
||||
export function mouseclick( element ) {
|
||||
// create a mouse click event
|
||||
var event = document.createEvent( 'MouseEvents' );
|
||||
|
|
Loading…
Reference in New Issue
Block a user