Skip to content

Commit

Permalink
Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Jan 10, 2021
1 parent ba7a97a commit 1c05032
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/showcase/listbox/ListBoxDoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ const cities = [
</CodeHighlight>

<h5>Custom Content</h5>
<p>Label of an option is used as the display text of an item by default, for custom content support define an itemTemplate function that gets the option as a parameter and returns the content.</p>
<p>Label of an option is used as the display text of an item by default, for custom content support define an itemTemplate property. Its value can be JSXElement, function or string.</p>

<CodeHighlight>
{`
Expand Down Expand Up @@ -377,9 +377,9 @@ itemTemplate(option) {
</tr>
<tr>
<td>itemTemplate</td>
<td>function</td>
<td>any</td>
<td>null</td>
<td>Function that gets the option and returns the content for it.</td>
<td>Custom template for the items.</td>
</tr>
<tr>
<td>style</td>
Expand Down

0 comments on commit 1c05032

Please sign in to comment.