Im looking to recreate the following button after updating to the latest version (button widget was rewritten in 1.12 onwards, However im struggling to get the syntax/classes correct based of the api documentation here: https://api.jqueryui.com/button/
but so far the closest I've got is
the code used to display the above is as follows
<button id="btnAddNew" type="button" title="New User Access" role="button" aria-disabled="false"></button>
$("#btnAddNew").button({
classes: {
"ui-button": "ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary"
},
icons: {
primary: "ui-icon-plus"
},
label: "New"
});
Can anyone point to where im going wrong?