mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Merge pull request #3471 from primefaces/issue-3394
SplitButton: Button class style and dropdown icon customization
This commit is contained in:
commit
e62a65f2fa
4 changed files with 27 additions and 1 deletions
4
components/splitbutton/SplitButton.d.ts
vendored
4
components/splitbutton/SplitButton.d.ts
vendored
|
@ -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 {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue