File

src/ui/file-picker/interfaces/smart-file-picker-folder.interface.ts

Implements

ISmartFilePickerFile

Index

Properties
Methods

Constructor

constructor(model: ISmartFilePickerFile)
Parameters :
Name Type Optional
model ISmartFilePickerFile No

Properties

Optional date
Type : string
index
Type : number
Optional isEditingName
Type : boolean
isSubfolder
Type : boolean
Optional parent
Type : SmartFilePickerFile
path
Type : string
Optional size
Type : number
Optional subfiles
Type : SmartFilePickerFile[]
type
Type : string

Methods

getBaseName
getBaseName()

Get the base name of the folder

Returns : any
getPathFromRoot
getPathFromRoot(includeRoot: unknown)

Get the path of the folder

Parameters :
Name Type Optional Default value Description
includeRoot unknown No true
  • Whether to include the root folder
Returns : any
getRootFolder
getRootFolder()

Get the root folder

Returns : any
getStringPathFromRoot
getStringPathFromRoot(includeRoot: unknown)

Get the string path of the folder

Parameters :
Name Type Optional Default value Description
includeRoot unknown No true
  • Whether to include the root folder
Returns : any
hasSubfolders
hasSubfolders()

Check if the folder has children

Returns : boolean
isRootFolder
isRootFolder()

Check if the folder is the root folder

Returns : boolean
setSubfolders
setSubfolders(subfolders: ISmartFilePickerFile[])

Set the subfolders of the folder

Parameters :
Name Type Optional Description
subfolders ISmartFilePickerFile[] No
  • The subfolders of the folder
Returns : void

results matching ""

    No results matching ""