API Reference
@univerjs
@univerjs/ui
Readme

@univerjs/ui v0.1.17Docs


@univerjs/ui

Enumerations

EnumerationDescription
BuiltInUIPart-
KeyCodeKeyCode that maps to browser standard keycode.
MenuGroup-
MenuItemType-
MenuPosition-
MetaKeysDefine meta key numbers.

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.
DesktopLocalStorageService-
DesktopMessageService-
DesktopNotificationService-
DesktopSidebarService-
DesktopUIController-
EditorService-
MenuService-
PlatformServiceA service to provide context info of the host service.
ProgressService-
SharedControllerDefine shared UI behavior across Univer business. Including undo / redo and clipboard operations.
ShortcutService-
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-
IEditorService-
IFloatDomLayoutProperties of selection data
IGlobalZoneService-
ILayoutService-
IMenuButtonItem-
IMenuGroup-
IMenuSelectorItem-
IMenuService-
IMessageService-
INotificationOptions-
INotificationService-
IPlatformServiceA service to provide context info of the host service.
IPopup-
IProgressService-
IProgressStep-
IRangeSelectorService-
IReactComponent-
IShortcutItem-
IShortcutService-
ISidebarService-
IUIController-
IUIPartsService-
IValueOption-
IVue3Component-
IWorkbenchOptions-
IZenZoneService-

Type Aliases

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

Variables

VariableDescription
CopyCommand-
CopyShortcutItem-
CutCommand-
CutShortcutItem-
DEFAULT_BACKGROUND_COLOR_RGB-
DEFAULT_BACKGROUND_COLOR_RGBA-
DISABLE_AUTO_FOCUS_KEY-
FONT_FAMILY_LIST-
FONT_SIZE_LIST-
HTML_CLIPBOARD_MIME_TYPE-
PLAIN_TEXT_CLIPBOARD_MIME_TYPE-
PasteCommand-
RedoShortcutItem-
SetEditorResizeOperation-
UndoShortcutItem-
builtInGlobalComponents-

Functions

FunctionDescription
CanvasPopup-
ComponentContainer-
ContextMenu-
CustomLabelThe component to render toolbar item label and menu item label.
FloatDom-
FontFamily-
FontFamilyItem-
FontSize-
GlobalZone-
IBeforeCloseService-
ICanvasPopupService-
IClipboardInterfaceService-
IConfirmService-
IContextMenuService-
IDialogService-
IEditorService-
IGlobalZoneService-
ILayoutService-
IMenuService-
IMessageService-
INotificationService-
IPlatformService-
IProgressService-
IRangeSelectorService-
IShortcutService-
ISidebarService-
IUIController-
IUIPartsService-
IZenZoneService-
Menu-
MobileContextMenu-
ProgressBar-
RangeSelector-
Sidebar-
TextEditorThe component to render toolbar item label and menu item label.
VueComponentWrapper-
ZenZone-
getMenuHiddenObservable-
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-
mergeMenuConfigs-
splitSpanTextsplit span text
t-
textTrimCopyright 2023-present DreamNum Inc.
useComponentsOfPartGet a set of render functions to render components of a part.
useEvent-
useObservable-
useScrollYOverContainerAllow the element to scroll when its height over the container height
useToolbarCollapseObserver-
useToolbarGroupsIf your custom toolbar component need to render menu items by their category, you can use this hook to get the toolbar status.
useToolbarItemStatusSubscribe to a menu item's status change and return the latest status.

Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.