Loading ...
Sorry, an error occurred while loading the content.

Re: [ydn-javascript] Re: Datateble cell formating

Expand Messages
  • Satyam
    It is better to do: YAHOO.util.Dom.addClass(elCell, someStyle ); and then have someStyle defined elsewhere, possibly in an application-wide style sheet so it
    Message 1 of 5 , Feb 4, 2008
    • 0 Attachment
      It is better to do:

      YAHOO.util.Dom.addClass(elCell,'someStyle');

      and then have someStyle defined elsewhere, possibly in an application-wide
      style sheet so it can be used consistently across all the application and,
      if modified, it needs to be modified in just one place.

      Satyam

      ----- Original Message -----
      From: "garivin" <garivin@...>
      To: <ydn-javascript@yahoogroups.com>
      Sent: Monday, February 04, 2008 9:25 PM
      Subject: [ydn-javascript] Re: Datateble cell formating


      > Found the solution using
      >
      >
      >
      > elCell.style.backgroundColor="red";
      > elCell.style.textAlign="right"
      >
      > in the formatter function
      >
      > --- In ydn-javascript@yahoogroups.com, "garivin" <garivin@...> wrote:
      >>
      >> Is there a way to have some cells with a specific format class ?
      >> I need to right align some columns and some cells of them will be
      >> with neutral background, some with red background and some with green
      >> background.
      >> I have used className property, adding a class in the formatted
      >> function with no luck.
      >> Any help will by appreciated.
      >>
      >
      >
      >
      >
      >
      > Yahoo! Groups Links
      >
      >
      >
      >
      >
      > --
      > No virus found in this incoming message.
      > Checked by AVG Free Edition.
      > Version: 7.5.516 / Virus Database: 269.19.19/1257 - Release Date:
      > 03/02/2008 17:49
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.