Skip to content

Commit

Permalink
Refactor #5105
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Jan 18, 2024
1 parent 19f9813 commit 3d43ab5
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api-generator/components/datatable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 6 additions & 0 deletions api-generator/components/multiselect.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 6 additions & 0 deletions api-generator/components/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
5 changes: 5 additions & 0 deletions components/lib/datatable/DataTable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
5 changes: 5 additions & 0 deletions components/lib/multiselect/MultiSelect.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 5 additions & 0 deletions components/lib/tree/Tree.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 3d43ab5

Please sign in to comment.