added 'add reference to original option element' in doc
This commit is contained in:
parent
feba7892ac
commit
4c1358a8cf
@ -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><option></code> (or <code><optgroup></code>) and use them inside temptlating functions:
|
You can set <code>data-</code> attributes to <code><option></code> (or <optgroup>) and use them inside temptlating functions:
|
||||||
</p>
|
</p>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<select>
|
<select>
|
||||||
@ -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><option></code> (or <code><optgroup></code>) element is accessible inside the specified function by property <code>item.element</code>:
|
Original <code><option></code> (or <optgroup>) 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><option></code> (or <code><optgroup></code>) element is accessible inside the specified function by property <code>item.element</code>:
|
Original <code><option></code> (or <optgroup>) 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user