jQuery UI Library Button

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  • $( ".selector" ).button();
  • $( ".selector" ).button({ disabled: true });
  • $( ".selector" ).button({ icons: { primary: "ui-icon-gear", secondary: "ui-icon-triangle-1-s" } });
  • $( ".selector" ).button({ label: "custom label" });
  • $( ".selector" ).button({ text: false });

Parameters

ParameterType - Details - Default
disabledBoolean - Disables the button if set to true - false
iconsObject - Icons to display - { primary: null, secondary: null }
labelString - Text to show in the button - null
textBoolean - Whether to show the label - true


Got any jQuery UI Library Question?