Displaying Hyperlink in YUI Datatable
I have a YUI datatable set and can set the YAHOO.widget.Column Formatter property to :link to set the column as a link however I need to set the column as an Titled link. i.e. set the href tag for that column. Data is stored in a local xml file and links in their own element seperate from the title.
var myColumnDefs = [
{key:"parentname", label:"Parent Entity" , sortable:true, formatter:"link"},
{key:"parentlink", sortable:true, formatter:this.formatUrl},
{key:"comname", label:"Committee Name" , sortable:true, formatter:this.formatUrl},
{key:"comlink"}
];
this.myDataSource = new YAHOO.util.DataSource(xmlDoc);
this.myDataSource.responseType = YAHOO.util.DataSource.TYPE_XML;
this.myDataSource.responseSchema = {
resultNode: "committee",
fields: ["comname","comlink","parentname","parentlink"]
};
Thoughts?
by
1 Reply