Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: jamil_isayyed on October 18, 2013, 08:22:40 AM

Title: adding button to the task bar
Post by: jamil_isayyed on October 18, 2013, 08:22:40 AM
Hello folks,

i have a question about adding a button to the task bar?, i manged to add a button as explained in the documentation as follow:
Code: [Select]
var button = $('<A>').attr('id', 'testButton').attr('style','background-image:url("test.gif");cursor:hand;cursor:pointer').html('click me!!');
        button.bind('click', function(e) { return rcmail.command('plugin.getForm', this); });

        //add and register
        rcmail.add_element(button, 'taskbar');

        rcmail.register_button('plugin.getForm', 'testId','link');
        rcmail.register_command('plugin.getForm', handlerfunction1, true);


the problem that the button appears after the logout, i need to change its place?? any idea how i can do it?

Thanks in advance.
Jamil Isayyed