View Categories

Adding hyperlinks

There are two ways to add a hyperlink to a data table:

  1. Add a hyperlink column
  2. Add a dynamic hyperlink

Hyperlink column #

A hyperlink column is a table column which is physically stored in the database. With this type of hyperlink you can add a specific hyperlink to each table row. The plugin generates the necessary features to support hyperlink editing in the data entry form. You can enter a label, url and target. An example could be a link to product specifications on the site of the product supplier.

Inline demo (try column hyperlink) #

NameImageIn StockHyperlinkDescription
NameImageIn StockHyperlinkDescription

A dynamic hyperlink is a computed column generated on the fly. Column variables can be added to a hyperlink and are substituted on generation.

Once a dynamic hyperlink is created, it can be added to a data table. Click on the Select button of your data table in Data Tables to add the hyperlink to your data table. That’s all!

    Inline demo (try column actions) #

      ActionsNameImageIn StockDescription
      ActionsNameImageIn StockDescription

      This example uses the following HTML to create the actions links

      <a href="javascript:alert('Action not implemented for $$product_name$$')" class="dashicons dashicons-plus-alt"></a>
      <a href="javascript:alert('Action not implemented for $$product_name$$')" class="dashicons dashicons-dismiss"></a>
      <a href="javascript:alert('Action not implemented for $$product_name$$')" class="dashicons dashicons-admin-generic"></a>
      

      Notice that variable $$product_name$$ is substituted with the column value of each row.