-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into u/juliaroldi/image-bugs-part-2
- Loading branch information
Showing
5 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
demo/scripts/controls/ribbonButtons/contentModel/insertLinkButton.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default as showInputDialog } from './utils/showInputDialog'; | ||
export { default as DialogItem } from './type/DialogItem'; |
17 changes: 16 additions & 1 deletion
17
packages-ui/roosterjs-react/lib/inputDialog/type/DialogItem.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
/** | ||
* @internal | ||
* Item of input dialog | ||
*/ | ||
export default interface DialogItem<Strings extends string> { | ||
/** | ||
* Localized string key of the input item name | ||
*/ | ||
labelKey: Strings | null; | ||
|
||
/** | ||
* Unlocalized string for the label text. This will be used when a valid localized string is not found using the given string key | ||
*/ | ||
unlocalizedLabel: string | null; | ||
|
||
/** | ||
* Initial value of this item | ||
*/ | ||
initValue: string; | ||
|
||
/** | ||
* Whether focus should be put into this item automatically | ||
*/ | ||
autoFocus?: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters