I am working with Backgrid along with rails , My requirement is to change href attribute in backgrid cell options , I have the following code
var grid = new Backgrid.Grid({
columns: [ {
name: "location",
cell: Backgrid.UriCell.extend({
}),
sortable: true,
editable: false
}]
})
above code displays hyrperlink with taking href attribute as "location-name" like the following
<a tabindex="-1" href="location-name" title="location-name" target="_blank">location-name</a>
, but I need href attribute as following
<a tabindex="-1" href="#some-id" title="location-name" target="_blank">location-name</a>
How can I do this , please help me