Skip to content

Commit

Permalink
Demos: Remove deprecated button APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
mgol authored Sep 30, 2024
1 parent 36ed9fc commit b8fff16
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
6 changes: 2 additions & 4 deletions demos/autocomplete/combobox.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,8 @@
.tooltip()
.appendTo( this.wrapper )
.button({
icons: {
primary: "ui-icon-triangle-1-s"
},
text: false
icon: "ui-icon-triangle-1-s",
showLabel: false
})
.removeClass( "ui-corner-all" )
.addClass( "custom-combobox-toggle ui-corner-right" )
Expand Down
6 changes: 2 additions & 4 deletions demos/tooltip/video-player.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,8 @@

$( "button" ).each(function() {
var button = $( this ).button({
icons: {
primary: $( this ).data( "icon" )
},
text: !!$( this ).attr( "title" )
icon: $( this ).data( "icon" ),
showLabel: !!$( this ).attr( "title" )
});
button.not( ".menu" ).on( "click", function() {
notify( button );
Expand Down
10 changes: 3 additions & 7 deletions tests/visual/tooltip/tooltip.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,11 @@

$( "#button1" ).button();
$( "#button2" ).button({
icons: {
primary: "ui-icon-wrench"
}
icon: "ui-icon-wrench"
});
$( "#button3, #button4" ).button({
icons: {
primary: "ui-icon-wrench"
},
text: false
icon: "ui-icon-wrench",
showLabel: false
});
$( "#buttons" ).tooltip({
position: {
Expand Down

0 comments on commit b8fff16

Please sign in to comment.