This website collects cookies to deliver better user experience
declare interface ICustomStrings { LocalizedString_Variable:string; LocalizedString_HTML:string; } declare module 'CustomStrings' { const strings: ICustomStrings ; export = strings; }
define([], function() { return { "LocalizedString_Variable":"Copying {0} item(s) to {1}...", "LocalizedString_HTML":"<Label >If needed, you will find the deleted items in the</Label> <a href='{0}' target='_blank' underline >Recycle Bin</a>" } });
import { format } from '@fluentui/utilities'; import * as strings from 'CustomStrings'; import { Spinner, SpinnerSize } from 'office-ui-fabric-react/lib/Spinner'; ... export default function CopyItemsForm1(props: ICopyItemsFormProps) { const [spinnerTxt, setSpinnerTxt] = React.useState<string>(strings.Spinner_PleaseWait); async function handleSubmit(): Promise<void> { setSpinnerTxt(format(strings.Spinner_Coyping, props.selectedRows.length, props.targetListName)); } ... return <> <Spinner size={SpinnerSize.large} label={spinnerTxt} ariaLive="assertive" /> </>; }
import { format } from '@fluentui/utilities'; import * as strings from 'CustomStrings'; import { MessageBar, MessageBarType } from 'office-ui-fabric-react/lib/MessageBar'; ... export default function CopyItemsForm2(props: ICopyItemsFormProps) { ... return <> <MessageBar messageBarType={MessageBarType.warning} isMultiline={true} > { <div dangerouslySetInnerHTML={{ __html: format(strings.LocalizedString_HTML, recycleBinUrl) }} ></div> } </MessageBar> </>; }
43
0