Skip to content

Commit

Permalink
Merge pull request #666 from parsonsmatt/master
Browse files Browse the repository at this point in the history
Docs/usage: Add details to create function
  • Loading branch information
joallard committed Apr 12, 2016
2 parents 253e1dd + 425c1f8 commit 6fbea9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ $(function() {
<tr>
<td valign="top"><code>create</code></td>
<td valign="top">
Allows the user to create a new items that aren't in the list of options. This option can be any of the following: "true", "false" (disabled), or a function that accepts two arguments: "input" and "callback". The callback should be invoked with the final data for the option.</td>
Allows the user to create a new items that aren't in the list of options. This option can be any of the following: "true", "false" (disabled), or a function to process input. The function can take one of two forms: synchronous (with signature <code>function(input){}</code> or asynchronous (with signature <code>function(input, callback)</code>. In the synchronous case, the function should <code>return</code> an object for the options (eg, with defaults: <code>return { 'value': value, 'text': text };</code>). The asynchronous version should invoke the callback with the result in the same format as the object above (eg, <code>callback( { 'value': value, 'text': text});</code>)</td>
<td valign="top"><code>mixed</code></td>
<td valign="top"><code>false</code></td>
</tr>
Expand Down

0 comments on commit 6fbea9a

Please sign in to comment.