Skip to content

Commit

Permalink
Add textUpdate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bbazukun123 committed Mar 8, 2024
1 parent 709c331 commit 2b4739c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,14 @@ type TextSelectOptions = {
* => new TextClass({ arg1, arg2, arg3, label: text })
*/
consolidateOptionsWithKey?: string;
/**
* Provide a function to update the text view.
* Good for the custom text class that doesn't have a direct text property
* that the default update function makes use of.
*/
textUpdate?: (view: any, text: string) => void;
/** Specify the text style options */
textStyle?: Partial<TextStyle>;
textUpdate?: (view: any, text: string) => void;
/** Provide an array of text strings for the dropdown */
items: string[];
} & BaseSelectOptions;
Expand Down

0 comments on commit 2b4739c

Please sign in to comment.