Skip to content

Commit

Permalink
Fix primefaces#2797: Chips add KeyFilter support
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Apr 29, 2022
1 parent 4e1eb48 commit e78e596
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions api-generator/components/chips.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,13 @@ const ChipsProps = [
type: 'function',
default: 'null',
description: 'Template function to return the content of a chip.'
}
},
{
name: 'keyfilter',
type: 'string/regex',
default: 'null',
description: 'Format definition of the keys to block.'
},
];

const ChipsEvents = [
Expand Down Expand Up @@ -150,7 +156,18 @@ const ChipsEvents = [
description: 'Browser event'
}
]
}
},
{
name: 'onKeyDown',
description: 'Callback to invoke when the key pressed.',
arguments: [
{
name: 'originalEvent',
type: 'object',
description: 'Browser event'
}
]
},
];

const ChipsStyles = [
Expand Down

0 comments on commit e78e596

Please sign in to comment.