[ 2 posts ]

Rohit ST

  • Username: RohitST
  • Joined: Fri Jun 01, 2012 7:34 am
  • Posts: 10
  • GitHub: Rohit
  • Gists: Rohit
  • IRC: ST
  • Offline
  • Profile

DataTable cell content as hyperlink

Post Posted: Wed Jun 20, 2012 9:38 am
+0-
Hi,

I am using DataTable (YUI3) in my project and i wanted to make the contents of one of the columns as a hyperlink that opens a Rich Text Area. Can anyone please tell me as to how this can be done?

YUI().use("datatable-sort","datatable-scroll", function(Y) {
var cols = [
{key:"FirstName", label:"FirstName", sortable:true},
{key:"LastName",label:"LastName"},
{key:"Company", label:"Company", sortable:true},
{key:"Telephone", label:"Telephone"},
{key:"Address", label:"Address"},
{key:"Expertise", label:"Expertise"}
})

If i had to make the lastname column to be hyperlinked what is to be done?

Thanks in advance

John Lindal

YUI Contributor

  • Username: jafl
  • Joined: Mon Nov 02, 2009 2:33 pm
  • Posts: 352
  • Location: Los Angeles, CA
  • Twitter: jafl5272
  • GitHub: jafl
  • Gists: jafl
  • Offline
  • Profile
Tags:

Re: DataTable cell content as hyperlink

Post Posted: Mon Jun 25, 2012 10:07 am
+0-
You need to configure a custom cell formatter. Check the YUI 3 DataTable documentation.
  [ 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