mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Merge branch 'master' into v4
This commit is contained in:
commit
5700f617cd
12 changed files with 72 additions and 10 deletions
8
components/lib/dropdown/Dropdown.d.ts
vendored
8
components/lib/dropdown/Dropdown.d.ts
vendored
|
@ -251,6 +251,14 @@ export interface DropdownState {
|
|||
* Defines current options in Dropdown component.
|
||||
*/
|
||||
export interface DropdownContext {
|
||||
/**
|
||||
* Current item option.
|
||||
*/
|
||||
option: any;
|
||||
/**
|
||||
* Current item index.
|
||||
*/
|
||||
index: number;
|
||||
/**
|
||||
* Current selection state of the item as a boolean.
|
||||
* @defaultValue false
|
||||
|
|
|
@ -277,6 +277,8 @@ export default {
|
|||
getPTItemOptions(option, itemOptions, index, key) {
|
||||
return this.ptm(key, {
|
||||
context: {
|
||||
option,
|
||||
index,
|
||||
selected: this.isSelected(option),
|
||||
focused: this.focusedOptionIndex === this.getOptionIndex(index, itemOptions),
|
||||
disabled: this.isOptionDisabled(option)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue