Hi Sébastien,

I did this a long time ago, I give you some cut 'n' paste code here for 
a specific Refresh button. I added it to the Windows class. It is 
extremely simple, but to make it work, the current buttons must be put 
in a container (div, span, whatever), I called it "_button_container". 
Additionally, you can set the action function for the onclick handler.

Object.extend(Windows, {
    addRefreshButton: function(win, action) {

        // Add refresh button
        new Insertion.Bottom(win.getId() + '_button_container',
            "<div class='dialog_refresh' id='" + win.getId() + 
"_refresh' " +
            "title='Refresh'> </div>");   
        Event.observe(win.getId() + '_refresh', 'click', action);
    }

});

(I left out the obvious error checking and try/catch for clarity).

Cheers,

Abel

Sébastien Gruhier wrote:
> Hi
> There is not right now, but I think it's a good idea to add, I will  
> work on it
> Seb
>
> On Apr 26, 2007, at 9:49 AM, Sebastian Roth wrote:
>
>   
>> Hi there,
>>
>> first of all: thanks for this amazing product. Really love to do my
>> Ajax stuff with it. ;-)
>>
>> My question in case is very simple: Is there any API to add some extra
>> buttons to the upper right / left corner? I'd need it for an `help`
>> button which explains the contents of the dialog/window or calls some
>> other methods.
>>
>> Thank you & best regards,
>> Sebastian
>>
>> _______________________________________________
>> Javawin mailing list
>> [email protected]
>> http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com
>>     
>
>
> _______________________________________________
> Javawin mailing list
> [email protected]
> http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com
>
>
>   


_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

Reply via email to