Changes

Jump to: navigation, search

Labs/Ubiquity/Ubiquity Source Tip Author Tutorial

67 bytes added, 05:15, 22 June 2009
Writing a Noun Type Object
=== Writing a Noun Type Object ===
The most involved way Of course, not every type of creating noun you'd be interested in can be representedas 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 nountype is to write an JavaScript object that implements a <code>suggest()</code> method (and, optionally, a <code>default()</code> method.)
Here's There is an example of what a noun type looks like:<pre>var noun_type_foo = { _name: "foo"how to do this in the section on the tab commands, suggest: function( text, html, callback ) { }, default: function() { }};</pre>below.
== Insert Email: the Contact noun type ==
1,007
edits

Navigation menu