mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #4286 - SelectButton: passthrough option
This commit is contained in:
parent
dd74bcd821
commit
dfdc462fe9
2 changed files with 6 additions and 1 deletions
|
@ -93,6 +93,10 @@ export interface SelectButtonContext {
|
|||
* @defaultValue false
|
||||
*/
|
||||
focused: boolean;
|
||||
/**
|
||||
* Available option.
|
||||
*/
|
||||
option: any;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -66,7 +66,8 @@ export default {
|
|||
return this.ptm(key, {
|
||||
context: {
|
||||
active: this.isSelected(option),
|
||||
disabled: this.isOptionDisabled(option)
|
||||
disabled: this.isOptionDisabled(option),
|
||||
option
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue