Merge pull request #3471 from primefaces/issue-3394

SplitButton: Button class style and dropdown icon customization
This commit is contained in:
Bahadır 2023-01-10 10:11:14 +03:00 committed by GitHub
commit e62a65f2fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 1 deletions

View file

@ -53,6 +53,10 @@ export interface SplitButtonProps {
* Uses to pass all properties of the HTMLButtonElement to the menu button.
*/
menuButtonProps?: ButtonHTMLAttributes | undefined;
/**
* Name of the menu button icon.
*/
menuButtonIcon?: string | undefined;
}
export interface SplitButtonSlots {

View file

@ -7,7 +7,7 @@
ref="button"
type="button"
class="p-splitbutton-menubutton"
icon="pi pi-chevron-down"
:icon="menuButtonIcon"
:disabled="disabled"
aria-haspopup="true"
:aria-expanded="isExpanded"
@ -72,6 +72,10 @@ export default {
menuButtonProps: {
type: null,
default: null
},
menuButtonIcon: {
type: String,
default: 'pi pi-chevron-down'
}
},
data() {