Page 1 of 1

add an action button on a browse screen

Posted: Tue Sep 30, 2014 4:03 pm
by arengo
Hi, is it possible to add an extra action button on a browse form view ?
I'd like to put a delete button nearby the add button

I tried this solution, but it's not working in Nubuilder pro
http://forums.nubuilder.cloud/viewtopic.p ... ion#p12534

Any hint?
Thank you

Ag

Re: add an action button on a browse screen

Posted: Wed Oct 01, 2014 11:41 pm
by massiws
arengo,
that solution is made for nuBuilder v.2.

For Browse screen try this:

Code: Select all

function nuLoadBrowse() {
    /* Append a new Action Button on Browse form */
    var space = $( "#nuSpace" ).clone().removeAttr("id");
    $( "#nuActionButtonHolder" ).append(space);

    var elem = '<input id="execButton" type="button">';
    $( "#nuActionButtonHolder" ).append(elem);
    $( "#execButton" )
        .addClass( "nuButton" )
        .attr( "value", "My custom function" )
        .click(function() {
            // Do something
            alert( "Clicked!" );
        }
    );
}
Have a look at this function.

Max.

Re: add an action button on a browse screen

Posted: Fri Oct 03, 2014 9:05 am
by arengo
Great, it works !
Thank you Max
Ag

Re: add an action button on a browse screen

Posted: Sat Oct 04, 2014 8:07 pm
by massiws
.