本文整理汇总了TypeScript中@uifabric/styling/lib/index.registerIcons函数的典型用法代码示例。如果您正苦于以下问题:TypeScript registerIcons函数的具体用法?TypeScript registerIcons怎么用?TypeScript registerIcons使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了registerIcons函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: initializeIcons
export function initializeIcons(
baseUrl: string = '',
options?: IIconOptions
): void {
const subset: IIconSubset = {
style: {
MozOsxFontSmoothing: 'grayscale',
WebkitFontSmoothing: 'antialiased',
fontStyle: 'normal',
fontWeight: 'normal',
speak: 'none'
},
fontFace: {
fontFamily: `"FabricMDL2Icons-14"`,
src: `url('${baseUrl}fabric-icons-14-cf85ed5b.woff') format('woff')`,
},
icons: {
'PublishCourse': '\uF699',
'DictionaryRemove': '\uF69A',
'UserRemove': '\uF69B',
'UserEvent': '\uF69C',
'Encryption': '\uF69D'
}
};
registerIcons(subset, options);
}
示例2: initializeIcons
export function initializeIcons(baseUrl: string = ''): void {
registerIcons({
style: {
MozOsxFontSmoothing: 'grayscale',
WebkitFontSmoothing: 'antialiased',
fontStyle: 'normal',
fontWeight: 'normal',
speak: 'none'
},
fontFace: {
fontFamily: `"FabricMDL2Icons-0"`,
src: `url('${baseUrl}fabric-icons-0-8a1666a2.woff') format('woff')`,
},
icons: {
'DecreaseIndentLegacy': '\uE290',
'IncreaseIndentLegacy': '\uE291',
'InternetSharing': '\uE704',
'Brightness': '\uE706',
'MapPin': '\uE707',
'Airplane': '\uE709',
'Tablet': '\uE70A',
'QuickNote': '\uE70B',
'Video': '\uE714',
'People': '\uE716',
'Phone': '\uE717',
'Pin': '\uE718',
'Shop': '\uE719',
'Stop': '\uE71A',
'Link': '\uE71B',
'Zoom': '\uE71E',
'ZoomOut': '\uE71F',
'Microphone': '\uE720',
'Camera': '\uE722',
'Attach': '\uE723',
'Send': '\uE724',
'FavoriteList': '\uE728',
'PageSolid': '\uE729',
'Forward': '\uE72A',
'Back': '\uE72B',
'Refresh': '\uE72C',
'Lock': '\uE72E',
'EMI': '\uE731',
'MiniLink': '\uE732',
'Blocked': '\uE733',
'ReadingMode': '\uE736',
'Favicon': '\uE737',
'Remove': '\uE738',
'Checkbox': '\uE739',
'CheckboxComposite': '\uE73A',
'CheckboxIndeterminate': '\uE73C',
'CheckboxCompositeReversed': '\uE73D',
'BackToWindow': '\uE73F',
'FullScreen': '\uE740',
'Print': '\uE749',
'Up': '\uE74A',
'Down': '\uE74B',
'Save': '\uE74E',
'Cloud': '\uE753',
'CommandPrompt': '\uE756',
'Sad': '\uE757',
'SIPMove': '\uE759',
'EraseTool': '\uE75C',
'GripperTool': '\uE75E',
'Dialpad': '\uE75F',
'PageLeft': '\uE760',
'PageRight': '\uE761',
'MultiSelect': '\uE762',
'Play': '\uE768',
'Pause': '\uE769',
'Emoji2': '\uE76E',
'GripperBarHorizontal': '\uE76F',
'System': '\uE770',
'Personalize': '\uE771',
'SearchAndApps': '\uE773',
'Globe': '\uE774',
'ContactInfo': '\uE779',
'Unpin': '\uE77A',
'Contact': '\uE77B',
'Memo': '\uE77C',
'Paste': '\uE77F',
'WindowsLogo': '\uE782',
'Error': '\uE783',
'GripperBarVertical': '\uE784',
'Unlock': '\uE785',
'Megaphone': '\uE789',
'AutoEnhanceOn': '\uE78D',
'AutoEnhanceOff': '\uE78E',
'Color': '\uE790',
'SaveAs': '\uE792',
'Light': '\uE793',
'Filters': '\uE795',
'AspectRatio': '\uE799',
'Contrast': '\uE7A1',
'Redo': '\uE7A6',
'PhotoCollection': '\uE7AA',
'Album': '\uE7AB',
'Rotate': '\uE7AD',
'PanoIndicator': '\uE7B0',
'RedEye': '\uE7B3',
'ThumbnailView': '\uE7B6',
//.........这里部分代码省略.........
示例3: initializeIcons
//.........这里部分代码省略.........
'SwayLogoFill16': '\uF485',
'ClassNotebookLogo32': '\uF486',
'ClassNotebookLogoFill32': '\uF487',
'ClassNotebookLogo16': '\uF488',
'ClassNotebookLogoFill16': '\uF489',
'ClassNotebookLogoInverse32': '\uF48A',
'ClassNotebookLogoInverse16': '\uF48B',
'StaffNotebookLogo32': '\uF48C',
'StaffNotebookLogoFill32': '\uF48D',
'StaffNotebookLogo16': '\uF48E',
'StaffNotebookLogoFill16': '\uF48F',
'StaffNotebookLogoInverted32': '\uF490',
'StaffNotebookLogoInverted16': '\uF491',
'KaizalaLogo': '\uF492',
'TaskLogo': '\uF493',
'ProtectionCenterLogo32': '\uF494',
'NonprofitLogo32': '\uF495',
'GallatinLogo': '\uF496',
'Globe2': '\uF49A',
'Guitar': '\uF49B',
'Breakfast': '\uF49C',
'Brunch': '\uF49D',
'BeerMug': '\uF49E',
'Vacation': '\uF49F',
'Teeth': '\uF4A0',
'Taxi': '\uF4A1',
'Chopsticks': '\uF4A2',
'SyncOccurence': '\uF4A3',
'UnsyncOccurence': '\uF4A4',
'PrimaryCalendar': '\uF4AE',
'SearchCalendar': '\uF4AF',
'VideoOff': '\uF4B0',
'MicrosoftFlowLogo': '\uF4B1',
'BusinessCenterLogo': '\uF4B2',
'ToDoLogoBottom': '\uF4B3',
'ToDoLogoTop': '\uF4B4',
'EditSolid12': '\uF4B5',
'EditSolidMirrored12': '\uF4B6',
'UneditableSolid12': '\uF4B7',
'UneditableSolidMirrored12': '\uF4B8',
'UneditableMirrored': '\uF4B9',
'AdminALogo32': '\uF4BA',
'AdminALogoFill32': '\uF4BB',
'ToDoLogoInverse': '\uF4BC',
'Snooze': '\uF4BD',
'WaffleOffice365': '\uF4E0',
'ImageSearch': '\uF4E8',
'NewsSearch': '\uF4E9',
'VideoSearch': '\uF4EA',
'R': '\uF4EB',
'FontColorA': '\uF4EC',
'FontColorSwatch': '\uF4ED',
'LightWeight': '\uF4EE',
'NormalWeight': '\uF4EF',
'SemiboldWeight': '\uF4F0',
'GroupObject': '\uF4F1',
'UngroupObject': '\uF4F2',
'AlignHorizontalLeft': '\uF4F3',
'AlignHorizontalCenter': '\uF4F4',
'AlignHorizontalRight': '\uF4F5',
'AlignVerticalTop': '\uF4F6',
'AlignVerticalCenter': '\uF4F7',
'AlignVerticalBottom': '\uF4F8',
'HorizontalDistributeCenter': '\uF4F9',
'VerticalDistributeCenter': '\uF4FA',
'Ellipse': '\uF4FB',
'Line': '\uF4FC',
'Octagon': '\uF4FD',
'Hexagon': '\uF4FE',
'Pentagon': '\uF4FF',
'RightTriangle': '\uF500',
'HalfCircle': '\uF501',
'QuarterCircle': '\uF502',
'ThreeQuarterCircle': '\uF503',
'6PointStar': '\uF504',
'12PointStar': '\uF505',
'ArrangeBringToFront': '\uF506',
'ArrangeSendToBack': '\uF507',
'ArrangeSendBackward': '\uF508',
'ArrangeBringForward': '\uF509',
'BorderDash': '\uF50A',
'BorderDot': '\uF50B',
'LineStyle': '\uF50C',
'LineThickness': '\uF50D',
'WindowEdit': '\uF50E',
'HintText': '\uF50F',
'MediaAdd': '\uF510',
'AnchorLock': '\uF511',
'AutoHeight': '\uF512',
'ChartSeries': '\uF513',
'ChartXAngle': '\uF514',
'ChartYAngle': '\uF515',
'Combobox': '\uF516',
'LineSpacing': '\uF517',
'Padding': '\uF518'
}
};
registerIcons(subset, options);
}