UNPKG

devextreme

Version:

JavaScript/TypeScript Component Suite for Responsive Web Development

25 lines (24 loc) 776 B
/** * DevExtreme (esm/__internal/ui/__tests__/__mock__/model/textbox.js) * Version: 25.2.7 * Build date: Tue May 05 2026 * * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import TextBox from "../../../../../ui/text_box"; export class TextBoxModel { constructor(root) { this.root = root } getInstance() { return TextBox.getInstance(this.root) } setValue(value) { var _this$getInstance; null === (_this$getInstance = this.getInstance()) || void 0 === _this$getInstance || _this$getInstance.option("value", value) } getInput() { return this.root.querySelector("input") } }