- Home
- Forum
- Angular - EJ 2
- PHP System Provider
PHP System Provider
Hello,
does anyone have a System Provider with PHP?
Or how is it possible to get async the folders of the FileManager?
Regards,
Prasanth Madhaiyan.
Hi Prasanth,
i've tried to work with the flat data.
i get the data from php, but how can i add it async to the file manager ?
- filterPath
- hasChild
- id
- isFile
- name
- parentId
- size
- type
Regards,
Prasanth Madhaiyan.
hi Prasanth,
thanks for your reply.
I'm develop a php service provider, when i'm finished, i can send it to you.
i've a further question:
is it possible customizing the templates (for example of the Details Dialog) within the file manager?
<div class="sample-container"> <ejs-filemanager id="flatdata" [fileSystemData]="resultData" (beforePopupOpen)="beforePopupOpen($event)" > </ejs-filemanager> </div> |
... export class AppComponent { ... beforePopupOpen(args:any) { if (args.popupName === 'File Details') { let table = args.popupModule.dlgContainer.querySelector( '.e-dlg-content table' ); let existingRow = Array.from(table.rows).find( (row: HTMLTableRowElement) => row.cells[0]?.innerHTML === 'New field' ); if (!existingRow) { let row = table.insertRow(0); let cell1 = row.insertCell(0); let cell2 = row.insertCell(1); cell1.innerHTML = 'New field'; cell2.innerHTML = 'custom'; } } } ... } |
Regards,
Prasanth Madhaiyan.
Thank you for your help.
i've one further questions:
How can i pass regional settings to the File Manager?
For example the Date Formats like d.m.Y H:i or m/d/y H:i or d/m/Y H:i
And
How can i change
... <div class="sample-container"> <ejs-filemanager id="flatdata" [fileSystemData]="resultData" [detailsViewSettings]="detailsViewSettings" [view]="view" (beforePopupOpen)="beforePopupOpen($event)" > </ejs-filemanager> </div> |
... export class AppComponent { public contextMenuSettings: object; public toolbarSettings: ToolbarSettingsModel; public fileData: FileData[]; public resultData: { [key: string]: Object }[]; public detailsViewSettings: object; public view: string; .... public ngOnInit(): void { this.view = 'Details'; this.detailsViewSettings = { columns: [ { field: 'name', headerText: 'Name', customAttributes: { class: 'e-fe-grid-name' }, }, { field: '_fm_modified', headerText: 'DateModified', // format: 'dd.MM.yyyy HH:mm' // format: 'MM/dd/yyyy HH:mm', format: 'dd/MM/yyyy HH:mm' }, { field: 'size', headerText: 'Size', template: '<span class="e-fe-size">${size}</span>', format: 'n2', }, ], }; ... } } |
Regards,
Prasanth Madhaiyan.
- 7 Replies
- 2 Participants
-
JK Johann Kronawitter
- Apr 3, 2025 07:21 PM UTC
- Apr 10, 2025 05:41 AM UTC