Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

add an action button on a browse screen

Locked
arengo
Posts: 2
Joined: Mon Aug 25, 2014 2:21 pm

add an action button on a browse screen

Unread post 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
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

Re: add an action button on a browse screen

Unread post 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.
arengo
Posts: 2
Joined: Mon Aug 25, 2014 2:21 pm

Re: add an action button on a browse screen

Unread post by arengo »

Great, it works !
Thank you Max
Ag
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

Re: add an action button on a browse screen

Unread post by massiws »

.
Locked