ER Diagram class name as link

Hi in the example https://gojs.net/latest/samples/entityRelationship.html provide in go.js website. How can i change each header into a link, for example if i click only on “products” i want to perform some action .

Just set its TextBlock.click event handler, http://gojs.net/latest/api/symbols/GraphObject.html#click.

For more info, read http://gojs.net/latest/intro/events.html.

For an example, examine https://gojs.net/latest/samples/euler.html.

thanks will try that . In addition ,how can i underline the header(text)
?

http://gojs.net/latest/api/symbols/TextBlock.html#isUnderline

Also you might be interested in: Hyperlink for any nodes in incremental diagram

Thanks it worked

Also, see: Hyperlink for any nodes in incremental diagram