Skip to content

@nhtio/vue-editors/icons

Functionality for retreiving and icons provided by the Vue Editors library.

Classes

ClassDescription
NVEFileIconVue component for displaying a file icon based on its filename.
NVEFolderIconVue component for displaying a folder icon based on its name.
NVEIconVue component for displaying an icon based on its name and kind.
NVEIconElementVue component for displaying an icon.

Type Aliases

Type AliasDescription
NVEFileIconPropsProperties for the NVEFileIcon component.
NVEFolderIconPropsProperties for the NVEFolderIcon component.
NVEIconElementPropsProperties for the NVEIconElement component.
NVEIconNameThe names of the known icons available in the NVE icon set.
NVEIconPropsProperties for the NVEIcon component.

Functions

FunctionDescription
getIconRetrieves the icon URL for a given name and kind.
getIconForDefaultFileReturns the icon URL for a default file.
getIconForDefaultFolderReturns the icon URL for a default (non-root) folder.
getIconForFileReturns the icon URL for a file, based on its name or extension. Falls back to the default file icon if no match is found.
getIconForFolderReturns the icon URL for a specific folder name, or the default if not found.
getIconForRootFolderReturns the icon URL for the root folder.
setIconSets a custom icon URL for a given icon name.