mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-29 03:20:46 +08:00
feature: add setValue method in ElementsWithUtils
This commit is contained in:
parent
524c4a9c08
commit
d31b39f135
1 changed files with 10 additions and 0 deletions
|
|
@ -743,6 +743,16 @@ export class ElementsWithUtils<
|
|||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set value of all input elements in the array
|
||||
*/
|
||||
setValue(this: ElementsWithUtils<ElementWithValue>, value: string): this {
|
||||
for (const item of this) {
|
||||
item.setValue(value);
|
||||
}
|
||||
return this as unknown as this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Query all elements in the array for a child element matching the selector
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue