1
0
mirror of synced 2024-11-23 05:26:10 +03:00

added 'add reference to original option element' in doc

This commit is contained in:
Emanuele Gaspari 2012-06-29 22:25:01 +02:00
parent feba7892ac
commit 4c1358a8cf

View File

@ -342,7 +342,7 @@ version: 2.1
<h3>Example Code</h3>
<pre class="prettyprint linenums" id="code_e4"></pre>
<p>
You can set <code>data-</code> attributes to <code>&lt;option&gt;</code> (or <code>&lt;optgroup&gt;</code>) and use them inside temptlating functions:
You can set <code>data-</code> attributes to <code>&lt;option&gt;</code> (or &lt;optgroup&gt;) and use them inside temptlating functions:
</p>
<pre class="prettyprint linenums">
&lt;select&gt;
@ -791,7 +791,7 @@ version: 2.1
</table>
The default implementation expects the object to have a <code>text</code> property that is returned.
<br><br>
Original <code>&lt;option&gt;</code> (or <code>&lt;optgroup&gt;</code>) element is accessible inside the specified function by property <code>item.element</code>:
Original <code>&lt;option&gt;</code> (or &lt;optgroup&gt;) element is accessible inside the specified function through the property <code>item.element</code>:
<pre>
format(item) {
var originalOption = item.element;
@ -809,7 +809,7 @@ version: 2.1
</table>
The default implementation expects the object to have a <code>text</code> property that is returned.
<br><br>
Original <code>&lt;option&gt;</code> (or <code>&lt;optgroup&gt;</code>) element is accessible inside the specified function by property <code>item.element</code>:
Original <code>&lt;option&gt;</code> (or &lt;optgroup&gt;) element is accessible inside the specified function through the property <code>item.element</code>:
<pre>
format(item) {
var originalOption = item.element;