[ 4 posts ]

Tri Phan

  • Username: tphan
  • Joined: Tue Jun 28, 2011 8:24 am
  • Posts: 27
  • Offline
  • Profile

Title Text Support

Post Posted: Wed Dec 14, 2011 12:08 pm
+0-
Hello, sorry if this question is rudimentary. With the YUI3 form object, is there support for setting the title attribute of form objects? Also, is there an image button support? Thanks.

Tri

Greg Hinch

YUI Contributor

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

Re: Title Text Support

Post Posted: Thu Dec 15, 2011 9:04 am
+0-
At the moment neither of those are supported, but I can look into adding them. I'll post here again when that's done.
Greg

Tri Phan

  • Username: tphan
  • Joined: Tue Jun 28, 2011 8:24 am
  • Posts: 27
  • Offline
  • Profile

Re: Title Text Support

Post Posted: Thu Dec 15, 2011 3:32 pm
+0-
Thanks Greg for the response. In regards to the title attribute, can you have it where one could specific the attribute name in the method invocation? Thus, we can set the title, class, width, align, and any other attribute that might be needed. The class attribute is great to have supported as we link our CSS definitions to each HTML objects and can leverage them in this package. Thanks again.

Tri

Greg Hinch

YUI Contributor

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

Re: Title Text Support

Post Posted: Wed Jan 11, 2012 3:36 pm
+0-
I've been thinking about this more, and I think I'd like to not add these attributes after all. I'd like to get away from the idea that Form is an abstraction of the form as an DOM node (thats what Y.Node is for). If you want to modify the attributes of the <form> tag in the page, you can access that via the "contentBox" attribute of the Form object and modify them there directly. I do think Form should grab these via parsed HTML if it is being created that way, so I'll get on that. But adding them after the fact should be done on the Node instance itself.
  [ 4 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