diff --git a/api-generator/components/datatable.js b/api-generator/components/datatable.js index 5fc330533..5e0ac3cc4 100644 --- a/api-generator/components/datatable.js +++ b/api-generator/components/datatable.js @@ -366,6 +366,12 @@ const DataTableProps = [ default: 'false', description: 'Whether to displays rows with alternating colors.' }, + { + name: 'highlightOnSelect', + type: 'boolean', + default: 'false', + description: 'Highlights automatically the first item.' + }, { name: 'size', type: 'string', diff --git a/api-generator/components/multiselect.js b/api-generator/components/multiselect.js index d552b28da..2f0409df9 100644 --- a/api-generator/components/multiselect.js +++ b/api-generator/components/multiselect.js @@ -245,6 +245,12 @@ const MultiSelectProps = [ default: 'false', description: 'Whether to focus on the filter element when the overlay panel is shown.' }, + { + name: 'highlightOnSelect', + type: 'boolean', + default: 'false', + description: 'Highlights automatically the first item.' + }, { name: 'filterMessage', type: 'string', diff --git a/api-generator/components/tree.js b/api-generator/components/tree.js index f0438c121..f38735277 100644 --- a/api-generator/components/tree.js +++ b/api-generator/components/tree.js @@ -72,6 +72,12 @@ const TreeProps = [ default: 'undefined', description: "Locale to use in filtering. The default locale is the host environment's current locale." }, + { + name: 'highlightOnSelect', + type: 'boolean', + default: 'false', + description: 'Highlights automatically the first item.' + }, { name: 'scrollHeight', type: 'string', diff --git a/components/lib/datatable/DataTable.d.ts b/components/lib/datatable/DataTable.d.ts index 4442ee73c..6c4e36b43 100755 --- a/components/lib/datatable/DataTable.d.ts +++ b/components/lib/datatable/DataTable.d.ts @@ -1105,6 +1105,11 @@ export interface DataTableProps { * @defaultValue false */ stripedRows?: boolean | undefined; + /** + * Highlights automatically the first item. + * @defaultValue false + */ + highlightOnSelect?: boolean | undefined; /** * Defines the size of the table. */ diff --git a/components/lib/multiselect/MultiSelect.d.ts b/components/lib/multiselect/MultiSelect.d.ts index 7bbecec15..a1eeb92be 100755 --- a/components/lib/multiselect/MultiSelect.d.ts +++ b/components/lib/multiselect/MultiSelect.d.ts @@ -478,6 +478,11 @@ export interface MultiSelectProps { * @defaultValue false */ autoFilterFocus?: boolean | undefined; + /** + * Highlights automatically the first item. + * @defaultValue false + */ + highlightOnSelect?: boolean | undefined; /** * Text to be displayed in hidden accessible field when filtering returns any results. Defaults to value from PrimeVue locale configuration. * @defaultValue '{0} results are available' diff --git a/components/lib/tree/Tree.d.ts b/components/lib/tree/Tree.d.ts index ff2cc6d00..e74cd087b 100755 --- a/components/lib/tree/Tree.d.ts +++ b/components/lib/tree/Tree.d.ts @@ -271,6 +271,11 @@ export interface TreeProps { * Locale to use in filtering. The default locale is the host environment's current locale. */ filterLocale?: string | undefined; + /** + * Highlights automatically the first item. + * @defaultValue false + */ + highlightOnSelect?: boolean | undefined; /** * Height of the scroll viewport in fixed units or the 'flex' keyword for a dynamic size. */