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

17573Re: [ydn-javascript] Links in a DataTable

Expand Messages
  • Satyam
    Sep 1, 2007
      In the DataSource, you could do:

      responseSchema.fields = [ ... , {key:'myLink',parser:function(link) {return
      link + '.html'}}, ... ]

      or otherwise you could either redefined the formatLink method or define your
      own separate function based on formatLink and assign it to formatter.

      Satyam

      ----- Original Message -----
      From: "ter31024" <ter@...>
      To: <ydn-javascript@yahoogroups.com>
      Sent: Saturday, September 01, 2007 9:34 PM
      Subject: [ydn-javascript] Links in a DataTable


      > Hello,
      >
      > I'm still fairly new at YUI and am having trouble getting links
      > configured in a DataTable. I have added the
      > 'YAHOO.widget.DataTable.formatLink' method as a parameter to my column
      > definitions and that succeeds in making the cell data equal to the
      > HREF. However, what I would like to do is append an 'html' extension
      > to this. I.e. the cell data would say "servers" but it would link to
      > "servers.html"
      >
      > It seems the only way to do this is to override the formatLink method
      > and I'm not having much luck with that. Is there an easier way to do
      > this?
      >
      > Any guidance in the right direction would be appreciated.
      > Tom
      >
      >
      >
      >
      > Yahoo! Groups Links
      >
      >
      >
      >
      >
      > --
      > No virus found in this incoming message.
      > Checked by AVG Free Edition.
      > Version: 7.5.484 / Virus Database: 269.13.1/982 - Release Date: 31/08/2007
      > 17:21
      >
      >
    • Show all 11 messages in this topic