You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[F2V] Files views API + navigation + base structure #30070
Views can decide what columns to add/remove (after the actions column)
/** * Open a file on the files app (after init) * * @param {string} path the path to the file or folder * @param {string} [view = 'main'] the view to open the files into * @return {Promise} */OCA.Files.open(path: string,view: string='main'): Promise// Creates a new view, sanitize data, throw if invalid or missing propconstview=newOCA.Files.View({...})/** * Register a new view * * @param {View} view the view to register * @throw Exception if already registered under same id */OCA.Files.Views.register(view)/** * Return the list of registered valid views * @return {View[]} */OCA.Files.Views.get(): View[]
{id: 'files',name: 'All files',getFiles([path='/']): FileInfo[],icon: (VueComponent|string): 'icon-files',order: 1,columns: [{name: t('files','Size'),id: 'size',property: 'size',[sortFunction: (FileInfoA,FileInfoB)=>integer],[summary: (FileInfo[])=>string],[tooltip: (FileInfo)=>string],}// ... other columns],[emptyView: VueComponent],// Like an EmptyContent[parent: 'id'],[sticky: false],}
Activity