Skip to content

Commit

Permalink
Refactor #3965 - For AutoComplete
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed May 23, 2023
1 parent 862b35f commit 8c39759
Show file tree
Hide file tree
Showing 3 changed files with 378 additions and 316 deletions.
18 changes: 16 additions & 2 deletions components/lib/autocomplete/AutoComplete.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export interface AutoCompletePassThroughOptions {
*/
container?: AutoCompletePassThroughOptionType;
/**
* Uses to pass attributes to the token' DOM element.
* Uses to pass attributes to the token's DOM element.
*/
token?: AutoCompletePassThroughOptionType;
/**
Expand All @@ -119,6 +119,10 @@ export interface AutoCompletePassThroughOptions {
* Uses to pass attributes to the remove token icon's DOM element.
*/
removeTokenIcon?: AutoCompletePassThroughOptionType;
/**
* Uses to pass attributes to the input token's DOM element.
*/
inputToken?: AutoCompletePassThroughOptionType;
/**
* Uses to pass attributes to the loading icon's DOM element.
*/
Expand Down Expand Up @@ -426,6 +430,11 @@ export interface AutoCompleteProps {
* @type {AutoCompletePassThroughOptions}
*/
pt?: AutoCompletePassThroughOptions;
/**
* When enabled, it removes component related styles in the core.
* @defaultValue false
*/
unstyled?: boolean;
}

/**
Expand Down Expand Up @@ -561,7 +570,12 @@ export interface AutoCompleteSlots {
/**
* Custom dropdown icon template.
*/
dropdownicon(): VNode[];
dropdownicon(scope: {
/**
* Style class of the icon.
*/
class: string;
}): VNode[];
/**
* Custom remove token icon template in multiple mode.
*/
Expand Down
Loading

0 comments on commit 8c39759

Please sign in to comment.