feature: add setValue method in ElementsWithUtils

This commit is contained in:
Francis Eugene Casibu 2025-12-25 17:50:44 +08:00
parent 524c4a9c08
commit d31b39f135

View file

@ -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
*/