Torch.TableView.table_link

You're seeing just the function table_link, go back to Torch.TableView module for more information.
Link to this function

table_link(conn, text, field)

View Source

Specs

table_link(Plug.Conn.t(), String.t(), atom()) :: Phoenix.HTML.safe()

Generates a sortable link for a table heading.

Clicking on the link will trigger a sort on that field. Clicking again will reverse the sort.

Example

iex> conn = %Plug.Conn{params: %{"sort_field" => "name", "sort_direction" => "asc"}}
...> table_link(conn, "Name", :name) |> safe_to_string()
"<a class=\"active asc\" href=\"?sort_direction=desc&amp;sort_field=name\">Name<span class=\"caret\"></span></a>"