Skip to content

Add Opening Button

This is a shortcut function call for adding a link-button which opens up the record itself.

Standard

Code

1
2
3
4
5
6
7
// file: hooks/TABLENAME-tv.js
jQuery(document).ready(function () {
    AppGiniHelper.TV
        .addOpenButton()
        .setWidth(0, 120)
        ;
});

Modified

Additional button on every row which is linked to TABLENAME_view.php?SelectedID=%ID%

Please note the new .setWidth function which allows you to resize columns for avoiding wordwrap. 1st parameter is the zero-based index of the column. 2nd parameter is the width in pixels.

See also: