mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-31 01:54:08 +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 ) {
|
export function mouseclick( element ) {
|
||||||
// create a mouse click event
|
// create a mouse click event
|
||||||
var event = document.createEvent( 'MouseEvents' );
|
var event = document.createEvent( 'MouseEvents' );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user