Member Junction
    Preparing search index...

    Implements

    • OnInit
    • OnChanges
    Index

    Constructors

    Properties

    CategoryID: string | undefined = undefined
    ColumnDefs: ColDef<any, any>[] = []
    DefaultColDef: ColDef = ...
    editFile: MJFileEntity | undefined
    files: MJFileEntity[] = []
    GridTheme: Theme = ...
    isLoading: boolean = false

    Methods

    • Downloads a file using the provided MJFileEntity.

      Parameters

      • file: MJFileEntity

        The MJFileEntity representing the file to be downloaded.

      Returns Promise<void>

      Promise - A promise that resolves when the file download is complete.

      Error - If there is an error during the file download process.

    • Handles the file upload event, sending a notification in case of failure and otherwise adding the newly uploaded files to the files currently displayed.

      Parameters

      • e: FileUploadEvent

        The file upload event.

      Returns void

    • A callback method that is invoked immediately after the default change detector has checked data-bound properties if at least one has changed, and before the view and content children are checked.

      Parameters

      • changes: { [propName: string]: SimpleChange<any> }

        The changed properties.

      Returns void

    • A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.

      Returns void

    • Resets the edited file.

      This method reverts any changes made to the edited file by calling the Revert method of the MJFileEntity class. It then sets the editFile property to undefined, indicating that there is no longer an edited file.

      Returns void

      void

    • Saves the edited file.

      This method saves the changes made to the edited file. It first checks if there is an edited file available. If so, it sets the isLoading property to true to indicate that the save operation is in progress. Then, it calls the Save method of the edited file to save the changes. If the save operation is successful, it creates a success notification using the sharedService.CreateSimpleNotification method. The notification message includes the ID and name of the saved file. Finally, it sets the edited file to undefined and sets the isLoading property to false to indicate that the save operation is complete.

      Returns Promise<void>

      Promise - A promise that resolves when the save operation is complete.

      Error - If there is an error during the save operation.