Skip to content

Commit

Permalink
fix(types): highlightmatches setting
Browse files Browse the repository at this point in the history
Type additions for new highlightMatches and ignoreSearchCase setting as of fomantic#2963
  • Loading branch information
lubber-de committed Feb 11, 2024
1 parent b3b7868 commit 3134909
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions types/fomantic-ui-dropdown.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,12 @@ declare namespace FomanticUI {
*/
ignoreSearchCase: boolean;

/**
* Whether search result should highlight matching strings
* @default false
*/
highlightMatches: boolean;

/**
* If disabled user additions will appear in the dropdown's menu using a specially formatted selection item formatted by 'templates.addition'.
* @default true
Expand Down
12 changes: 12 additions & 0 deletions types/fomantic-ui-search.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,18 @@ declare namespace FomanticUI {
*/
ignoreDiacritics: boolean;

/**
* Whether to consider case sensitivity on local searching
* @default true
*/
ignoreSearchCase: boolean;

/**
* Whether search result should highlight matching strings
* @default false
*/
highlightMatches: boolean;

/**
* Template to use (specified in settings.templates)
* @default 'standard'
Expand Down

0 comments on commit 3134909

Please sign in to comment.