最新バージョンに更新した後、次のボタンを再作成しようとしています (ボタン ウィジェットは 1.12 以降で書き直されましたが、ここの API ドキュメントに基づいて正しい構文/クラスを取得するのに苦労しています: https://api.jqueryui.com/button /
上記を表示するために使用されるコードは次のとおりです
<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"
});
誰かが間違っている場所を指摘できますか?