@univerjsuiindexReadme

@univerjs/ui v0.5.0-beta.1Docs


index

Index

Enumerations

EnumerationDescription
BuiltInUIPart-
ContextMenuGroup-
ContextMenuPosition-
KeyCodeKeyCode that maps to browser standard keycode.
MenuItemType-
MenuManagerPositionCopyright 2023-present DreamNum Inc.
MetaKeysDefine meta key numbers.
RibbonDataGroup-
RibbonFormulasGroup-
RibbonInsertGroup-
RibbonOthersGroup-
RibbonPosition-
RibbonStartGroup-
RibbonViewGroup-

Classes

ClassDescription
BrowserClipboardServiceThis interface provides an interface to access system’s clipboard.
CanvasFloatDomService-
CanvasPopupService-
ComponentManager-
ContextMenuService-
DesktopBeforeCloseService-
DesktopConfirmService-
DesktopDialogService-
DesktopGlobalZoneService-
DesktopLayoutServiceThis service is responsible for storing layout information of the current Univer application instance.
DesktopLocalFileService-
DesktopLocalStorageService-
DesktopMessageService-
DesktopNotificationService-
DesktopSidebarService-
DesktopUIController-
DesktopZenZoneService-
ErrorController-
MenuManagerService-
PlatformServiceA service to provide context info of the host service.
SharedControllerDefine shared UI behavior across Univer business. Including undo / redo and clipboard operations.
ShortcutPanelControllerThis controller add a side panel to the application to display the shortcuts.
ShortcutPanelService-
UIPartsService-
UniverUIPluginUI plugin provides basic interaction with users. Including workbench (menus, UI parts, notifications etc.), copy paste, shortcut.
ZIndexManagerCopyright 2023-present DreamNum Inc.

Interfaces

InterfaceDescription
IBeforeCloseService-
ICanvasPopupService-
IClipboardInterfaceServiceThis interface provides an interface to access system’s clipboard.
IComponentContainerProps-
IConfirmService-
IContextMenuHandler-
IContextMenuService-
ICustomComponentProps-
IDialogService-
IFloatDomLayoutProperties of selection data
IGlobalZoneService-
ILayoutService-
ILocalFileService-
IMenuButtonItem-
IMenuManagerService-
IMenuSchema-
IMenuSelectorItem-
IMessageService-
INotificationOptions-
INotificationService-
IOpenFileOptions-
IPlatformServiceA service to provide context info of the host service.
IPopup-
IReactComponent-
IShortcutItemA shortcut item that could be registered to the IShortcutService.
IShortcutServiceThe interface of the shortcut service.
ISidebarMethodOptions-
ISidebarService-
IUIController-
IUIPartsService-
IUniverUIConfig-
IValueOption-
IVue3Component-
IWorkbenchOptions-
IZenZoneService-

Type Aliases

Type aliasDescription
ComponentList-
ComponentType-
IConfirmPartMethodOptions-
ICustomLabelProps-
IDialogPartMethodOptions-
IDisplayMenuItem-
IMenuItem-
IMenuItemFactory-
MenuConfig-
MenuItemDefaultValueType-
MenuSchemaType-
NotificationType-

Variables

VariableDescription
builtInGlobalComponents-
CopyCommand-
CopyShortcutItem-
CutCommand-
CutShortcutItem-
DEFAULT_BACKGROUND_COLOR_RGB-
DEFAULT_BACKGROUND_COLOR_RGBA-
DISABLE_AUTO_FOCUS_KEY-
FILE__BMP_CLIPBOARD_MIME_TYPE-
FILE__JPEG_CLIPBOARD_MIME_TYPE-
FILE__WEBP_CLIPBOARD_MIME_TYPE-
FILE_PNG_CLIPBOARD_MIME_TYPE-
FILE_SVG_XML_CLIPBOARD_MIME_TYPE-
FONT_FAMILY_LIST-
FONT_SIZE_LIST-
HTML_CLIPBOARD_MIME_TYPE-
menuSchema-
PasteCommand-
PLAIN_TEXT_CLIPBOARD_MIME_TYPE-
PLUGIN_CONFIG_KEY-
RedoShortcutItem-
ToggleShortcutPanelOperation-
UndoShortcutItem-
UNIVER_UI_PLUGIN_NAME-

Functions

FunctionDescription
CanvasPopup-
ComponentContainer-
ContextMenu-
CustomLabelThe component to render toolbar item label and menu item label.
FloatDom-
FontFamily-
FontFamilyItem-
FontSize-
getHeaderFooterMenuHiddenObservable-
getMenuHiddenObservable-
GlobalZone-
handelExcelToJson-
handelTableToJson-
handleDomToJsonThe entire list of DOM spans is parsed into a rich-text JSON style sheet
handlePlainToJson-
handleStringToStyleA single span parses out the ITextStyle style sheet
handleTableColgroup-
handleTableMergeData-
handleTableRowGroup-
IBeforeCloseService-
ICanvasPopupService-
IClipboardInterfaceService-
IConfirmService-
IContextMenuService-
IDialogService-
IGlobalZoneService-
ILayoutService-
ILeftSidebarService-
ILocalFileServiceThis service is used to upload files.
IMenuManagerService-
IMessageService-
INotificationService-
IPlatformService-
IShortcutServiceThe dependency injection identifier of the IShortcutService.
ISidebarService-
IUIController-
IUIPartsService-
IZenZoneService-
Menu-
mergeMenuConfigs-
MobileContextMenu-
ProgressBar-
RectPopup-
Ribbon-
Sidebar-
splitSpanTextsplit span text
t-
textTrimCopyright 2023-present DreamNum Inc.
ToolbarButtonButton Component
ToolbarItem-
useComponentsOfPartGet a set of render functions to render components of a part.
useEvent-
useObservableA hook to subscribe to an observable and get the latest value.
useObservableRef-
useScrollYOverContainerAllow the element to scroll when its height over the container height
useSidebarClickResponse panel to a click event.
useToolbarItemStatusSubscribe to a menu item’s status change and return the latest status.
useVirtualList-
VueComponentWrapper-
ZenZone-