clarify user-defined widths (#5078)
This commit is contained in:
parent
93c163965d
commit
7eef84ec1a
@ -127,27 +127,27 @@ Select2 will try to match the width of the original element as closely as possib
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>"element"</code></td>
|
<td><code>'element'</code></td>
|
||||||
<td>
|
<td>
|
||||||
Uses the computed element width from any applicable CSS rules.
|
Uses the computed element width from any applicable CSS rules.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>"style"</code></td>
|
<td><code>'style'</code></td>
|
||||||
<td>
|
<td>
|
||||||
Width is determined from the <code>select</code> element's <code>style</code> attribute. If no <code>style</code> attribute is found, null is returned as the width.
|
Width is determined from the <code>select</code> element's <code>style</code> attribute. If no <code>style</code> attribute is found, null is returned as the width.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>"resolve"</code></td>
|
<td><code>'resolve'</code></td>
|
||||||
<td>
|
<td>
|
||||||
Uses the <code>style</code> attribute value if available, falling back to the computed element width as necessary.
|
Uses the <code>style</code> attribute value if available, falling back to the computed element width as necessary.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>{width_value}</code></td>
|
<td><code>'<value>'</code></td>
|
||||||
<td>
|
<td>
|
||||||
Valid CSS values can be passed as a string (i.e. <code>80%</code>).
|
Valid CSS values can be passed as a string (e.g. <code>width: '80%'</code>).
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user