Set a link inside a datatable cell

jQuery UI Widgets
Post Reply
janoalex
Posts: 2
Joined: 16 Oct 2017, 11:59

18 Oct 2017, 18:51

Hello,

is it possible to set a link inside a datatable cell? I have only tried this, but it's taken as text, as expected.

Code: Select all

var localData = [
    {'brand': 'Volkswagen', 'url': '<a href=\"http://www.wolkswagen.com\">Volkswagen website</a>}
];
thanks!

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

27 Oct 2017, 17:46

You can use content property of column, that should be a function to return the content.

Post Reply

Return to “PrimeUI”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests