1,007
edits
| Line 446: | Line 446: | ||
=== Writing a Noun Type Object === | === Writing a Noun Type Object === | ||
Of course, not every type of noun you'd be interested in can be represented | |||
as a finite list or as a regexp. If you want to be able to accept or reject input based on some algorithmic test, you can do so by writing a custom JavaScript object that implements a <code>suggest()</code> method (and, optionally, a <code>default()</code> method.) | |||
There is an example of how to do this in the section on the tab commands, below. | |||
== Insert Email: the Contact noun type == | == Insert Email: the Contact noun type == | ||
edits