1
0
mirror of synced 2024-11-23 13:36:01 +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> <h3>Example Code</h3>
<pre class="prettyprint linenums" id="code_e4"></pre> <pre class="prettyprint linenums" id="code_e4"></pre>
<p> <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> </p>
<pre class="prettyprint linenums"> <pre class="prettyprint linenums">
&lt;select&gt; &lt;select&gt;
@ -791,7 +791,7 @@ version: 2.1
</table> </table>
The default implementation expects the object to have a <code>text</code> property that is returned. The default implementation expects the object to have a <code>text</code> property that is returned.
<br><br> <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> <pre>
format(item) { format(item) {
var originalOption = item.element; var originalOption = item.element;
@ -809,7 +809,7 @@ version: 2.1
</table> </table>
The default implementation expects the object to have a <code>text</code> property that is returned. The default implementation expects the object to have a <code>text</code> property that is returned.
<br><br> <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> <pre>
format(item) { format(item) {
var originalOption = item.element; var originalOption = item.element;