Labs/Ubiquity/Ubiquity 0.5 Author Tutorial: Difference between revisions

→‎Insert Email: the Contact noun type: args -> arguments | text -> html
(→‎Echo: arguments -> args)
(→‎Insert Email: the Contact noun type: args -> arguments | text -> html)
Line 496: Line 496:
<pre>
<pre>
CmdUtils.CreateCommand({
CmdUtils.CreateCommand({
   names: ["insert email"],
   name: "insert email",
   arguments: {modifier: noun_type_contact},
   arguments: {modifier: noun_type_contact},
   preview: "Inserts someone's email address by name.",
   preview: "Inserts someone's email address by name.",
   execute: function( arguments ) {
   execute: function(args) {
     CmdUtils.setSelection( arguments.modifier.text );
     CmdUtils.setSelection(args.modifier.html);
   }
   },
});
});
</pre>
</pre>
73

edits