<titledata-rh="true">Interface: InputBoxOptions | Podman Desktop</title><metadata-rh="true"name="viewport"content="width=device-width,initial-scale=1"><metadata-rh="true"name="twitter:card"content="summary_large_image"><metadata-rh="true"property="og:image"content="https://podman-desktop.io/img/banner_podman-desktop.png"><metadata-rh="true"name="twitter:image"content="https://podman-desktop.io/img/banner_podman-desktop.png"><metadata-rh="true"property="og:url"content="https://podman-desktop.io/api/interfaces/InputBoxOptions"><metadata-rh="true"property="og:locale"content="en"><metadata-rh="true"name="docusaurus_locale"content="en"><metadata-rh="true"name="docsearch:language"content="en"><metadata-rh="true"name="docusaurus_version"content="current"><metadata-rh="true"name="docusaurus_tag"content="docs-api-current"><metadata-rh="true"name="docsearch:version"content="current"><metadata-rh="true"name="docsearch:docusaurus_tag"content="docs-api-current"><metadata-rh="true"property="og:title"content="Interface: InputBoxOptions | Podman Desktop"><metadata-rh="true"name="description"content="Options to configure the behavior of the input box UI."><metadata-rh="true"property="og:description"content="Options to configure the behavior of the input box UI."><linkdata-rh="true"rel="icon"href="/img/favicon.ico"><linkdata-rh="true"rel="canonical"href="https://podman-desktop.io/api/interfaces/InputBoxOptions"><linkdata-rh="true"rel="alternate"href="https://podman-desktop.io/api/interfaces/InputBoxOptions"hreflang="en"><linkdata-rh="true"rel="alternate"href="https://podman-desktop.io/api/interfaces/InputBoxOptions"hreflang="x-default"><linkdata-rh="true"rel="preconnect"href="https://MR01ANKQ9S-dsn.algolia.net"crossorigin="anonymous"><linkrel="alternate"type="application/rss+xml"href="/blog/rss.xml"title="Podman Desktop RSS Feed">
<linkrel="alternate"type="application/atom+xml"href="/blog/atom.xml"title="Podman Desktop Atom Feed">
<p>Options to configure the behavior of the input box UI.</p>
<h2class="anchor anchorWithStickyNavbar_JmGV"id="properties">Properties<ahref="#properties"class="hash-link"aria-label="Direct link to Properties"title="Direct link to Properties"></a></h2>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="ignorefocusout">ignoreFocusOut?<ahref="#ignorefocusout"class="hash-link"aria-label="Direct link to ignoreFocusOut?"title="Direct link to ignoreFocusOut?"></a></h3>
<p>Set to <code>true</code> to keep the input box open when focus moves to another part of the editor or to another window.
This setting is ignored on iPad and is always false.</p>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="source">Source<ahref="#source"class="hash-link"aria-label="Direct link to Source"title="Direct link to Source"></a></h4>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="markdowndescription">markdownDescription?<ahref="#markdowndescription"class="hash-link"aria-label="Direct link to markdownDescription?"title="Direct link to markdownDescription?"></a></h3>
<p>A description of the field to be show (Markdown format)</p>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="source-1">Source<ahref="#source-1"class="hash-link"aria-label="Direct link to Source"title="Direct link to Source"></a></h4>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="multiline">multiline?<ahref="#multiline"class="hash-link"aria-label="Direct link to multiline?"title="Direct link to multiline?"></a></h3>
<p>Set to <code>true</code> when value represents a multi line content.</p>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="source-2">Source<ahref="#source-2"class="hash-link"aria-label="Direct link to Source"title="Direct link to Source"></a></h4>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="password">password?<ahref="#password"class="hash-link"aria-label="Direct link to password?"title="Direct link to password?"></a></h3>
<p>Controls if a password input is shown. Password input hides the typed text.</p>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="source-3">Source<ahref="#source-3"class="hash-link"aria-label="Direct link to Source"title="Direct link to Source"></a></h4>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="placeholder">placeHolder?<ahref="#placeholder"class="hash-link"aria-label="Direct link to placeHolder?"title="Direct link to placeHolder?"></a></h3>
<p>An optional string to show as placeholder in the input box to guide the user what to type.</p>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="source-4">Source<ahref="#source-4"class="hash-link"aria-label="Direct link to Source"title="Direct link to Source"></a></h4>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="prompt">prompt?<ahref="#prompt"class="hash-link"aria-label="Direct link to prompt?"title="Direct link to prompt?"></a></h3>
<p>The text to display underneath the input box.</p>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="source-5">Source<ahref="#source-5"class="hash-link"aria-label="Direct link to Source"title="Direct link to Source"></a></h4>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="title">title?<ahref="#title"class="hash-link"aria-label="Direct link to title?"title="Direct link to title?"></a></h3>
<p>An optional string that represents the title of the input box.</p>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="source-6">Source<ahref="#source-6"class="hash-link"aria-label="Direct link to Source"title="Direct link to Source"></a></h4>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="value">value?<ahref="#value"class="hash-link"aria-label="Direct link to value?"title="Direct link to value?"></a></h3>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="source-7">Source<ahref="#source-7"class="hash-link"aria-label="Direct link to Source"title="Direct link to Source"></a></h4>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="valueselection">valueSelection?<ahref="#valueselection"class="hash-link"aria-label="Direct link to valueSelection?"title="Direct link to valueSelection?"></a></h3>
<p>Selection of the pre-filled <ahref="/api/interfaces/InputBoxOptions#value"><code>value</code></a>. Defined as tuple of two number where the
first is the inclusive start index and the second the exclusive end index. When <code>undefined</code> the whole
pre-filled value will be selected, when empty (start equals end) only the cursor will be set,
otherwise the defined range will be selected.</p>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="source-8">Source<ahref="#source-8"class="hash-link"aria-label="Direct link to Source"title="Direct link to Source"></a></h4>
<h2class="anchor anchorWithStickyNavbar_JmGV"id="methods">Methods<ahref="#methods"class="hash-link"aria-label="Direct link to Methods"title="Direct link to Methods"></a></h2>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="validateinput">validateInput()?<ahref="#validateinput"class="hash-link"aria-label="Direct link to validateInput()?"title="Direct link to validateInput()?"></a></h3>
<p>An optional function that will be called to validate input and to give a hint
to the user.</p>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="parameters">Parameters<ahref="#parameters"class="hash-link"aria-label="Direct link to Parameters"title="Direct link to Parameters"></a></h4>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="returns">Returns<ahref="#returns"class="hash-link"aria-label="Direct link to Returns"title="Direct link to Returns"></a></h4>
<p>Either a human-readable string which is presented as an error message or an <ahref="/api/interfaces/InputBoxValidationMessage">InputBoxValidationMessage</a>
which can provide a specific message severity. Return <code>undefined</code>, <code>null</code>, or the empty string when 'value' is valid.</p>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="source-9">Source<ahref="#source-9"class="hash-link"aria-label="Direct link to Source"title="Direct link to Source"></a></h4>