[IMP] web_widget_numeric_step: Add auto_select option

This commit is contained in:
Alexandre D. Díaz
2021-03-31 13:30:57 +02:00
committed by Thanakrit Pintana
parent 69a3d5f683
commit 7c266307d0
4 changed files with 39 additions and 1 deletions

View File

@@ -398,6 +398,14 @@ Iteration step by default is 1.</p>
<pre class="code xml literal-block">
<span class="nt">&lt;field</span> <span class="na">name=</span><span class="s">&quot;sale_delay&quot;</span> <span class="na">widget=</span><span class="s">&quot;numeric_step&quot;</span> <span class="na">options=</span><span class="s">&quot;{'step': 0.25, 'min': -1, 'max': 10}&quot;</span> <span class="nt">/&gt;</span> days
</pre>
<p><strong>Available Options</strong></p>
<ul class="simple">
<li>step &gt; Amount to increase/decrease (default: 1.0)</li>
<li>min &gt; Min. value allowed (default: no limit)</li>
<li>max &gt; Max. value allowed (default: no limit)</li>
<li>auto_select &gt; Select the content when the element get focus (default: False)</li>
<li>placeholder &gt; Define the placeholder text (default: None)</li>
</ul>
<p><strong>Examples</strong></p>
<p>Iteration with 0.25 step, min to -1 and max to 10.</p>
<p>Start to increment with button, continue incrementing with scrolling mouse.</p>