[CLOSED] Add css class to FieldLabel property in v2.0

  1. #1

    [CLOSED] Add css class to FieldLabel property in v2.0

    Hi,

    Here's my question for v1.6 http://forums.ext.net/showthread.php...-input-as-well

    How I can realized it in v2.0

    code below:
    this.label.addclass('myclass');
    causing javascript error

    Thanks,
    ViDom
    Last edited by geoffrey.mcgill; Sep 28, 2012 at 9:49 PM. Reason: [CLOSED]
  2. #2
    Quote Originally Posted by ViDom View Post
    causing javascript error
    and, what is the JavaScript error? When you debug using a tool such as Firefox+Firebug, do you receive a more detailed error or exception message?
    Geoffrey McGill
    Founder
  3. #3
    Quote Originally Posted by geoffrey.mcgill View Post
    and, what is the JavaScript error? When you debug using a tool such as Firefox+Firebug, do you receive a more detailed error or exception message?
    label is undefined
    that's the error
  4. #4
    Please try:
    this.labelEl.addCls("my-class");
  5. #5
    Quote Originally Posted by Daniil View Post
    Please try:
    this.labelEl.addCls("my-class");
    this doesn't work either but now it's faster and better way simply asign your class to
    LabelStyle
    property works :)

Similar Threads

  1. [CLOSED] Use CSS Class for FieldLabel
    By sadaf in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Sep 07, 2012, 6:05 PM
  2. Replies: 1
    Last Post: Apr 30, 2012, 7:34 AM
  3. Replies: 4
    Last Post: Apr 25, 2012, 11:57 AM
  4. Replies: 5
    Last Post: Apr 19, 2012, 4:35 PM
  5. Replies: 3
    Last Post: Dec 15, 2011, 12:18 PM

Tags for this Thread

Posting Permissions