Thursday, May 29, 2014

Add custom button for ‘Clear My Customizations’

In one of our recent development we had a requirement to add a custom button dashboard for ‘Clear My Customizations’. By default you can find this option in Page Options drop down on Right-Top corner of Dashboard.
To create button we need to find ‘On Click’ event of this option. We can find properties of this link by right clicking on ‘Clear My Customizations’ and Inspect element.

Following are the steps to create custom button,


    1.      Edit Dashboard and add Text from dashboard object list on the corresponding Section:




    2.      Edit text and add the following HTML code :

<div class="XUIPromptEntry minibuttonOn">            <Table>                       <tr><td><input type="button" value="Clear My Customization" style="width:200px; background-color: rgb(47, 95, 135); color: rgb(255, 255, 255); font-size:13px; font-family: Arial,sans-serif;  font-weight:bold;"  onclick="return PersonalizationEditor.removeDefaultSelection(false)"></button></td></tr>          
</table>  </div>

    3.      Check the box “Contains HTML Markup” and save the changes.

1 comment:

  1. The Perfect Casino: Top Offers & Bonuses at
    The Best Casino Offers. https://septcasino.com/review/merit-casino/ Casino Bonuses & Promotions. gri-go.com With an emphasis on casino games, worrione.com the gambling industry is expected septcasino to explode

    ReplyDelete