Skip to content

Demos: Remove deprecated button APIs #2296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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