YUILibrary - Open source JavaScript and CSS for building richly interactive software.
Fork YUI on GitHub
  [ 2 posts ]

Huey Brantley

  • Username: hpbrantley
  • Joined: Fri Feb 05, 2010 6:56 am
  • Posts: 22
  • Offline
  • Profile
Tags:

Is it possible to pass in another object to be a field?

Post Posted: Mon Jul 26, 2010 12:59 pm
+0-
For instance, while learning YUI 3 I turned the spinner example into a widget extension with a few added features. Could I pass this into the form?

My spinner learning is at http://brantleys.com/yui/spinner-example.html

Greg Hinch

YUI Contributor

  • Username: greghinch
  • Joined: Wed Jun 03, 2009 10:49 am
  • Posts: 40
  • Location: Playa del Rey, CA , USA
  • Twitter: greghinch
  • GitHub: ghinch
  • Gists: ghinch
  • IRC: gr-eg
  • Offline
  • Profile

Re: Is it possible to pass in another object to be a field?

Post Posted: Tue Jul 27, 2010 6:43 am
+0-
What I would suggest is to use the Spinner example to create a custom form field. The Y.FormField class extends Y.Widget, so take that example and use FormField in place of Widget. The resulting object should be useable in the form
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum