Skip to content

Instantly share code, notes, and snippets.

@ivanstojic
Created December 6, 2009 15:21
Show Gist options
  • Save ivanstojic/250264 to your computer and use it in GitHub Desktop.
Save ivanstojic/250264 to your computer and use it in GitHub Desktop.
// Setup the TextField so we can show it later
this.controller.setupWidget("myTextEditor",
this.widgetAttributes,
this.widgetModel);
// Then hide it until we need it...
this.controller.get("myTextEditor").hide();
// Listen for the tap event on the DIV...
Mojo.Event.listen(this.controller.get("myTriggerDiv"),
Mojo.Event.tap,
this.divTappedHandler.bind(this));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment