Lime Web Components API Documentation - v7.2.0
    Preparing search index...

    Interface LimeFileRepositoryBeta

    A repository for accessing LimeFile instances that belong to limeobjects currently loaded in state.

    interface LimeFileRepository {
        getFile(id: number): LimeFile | undefined;
    }
    Index

    Methods

    Methods

    • Beta

      Get a LimeFile by id.

      Only searches files attached to limeobjects that are already loaded in state — it does not fetch from the server. If no loaded object owns a file with this id, undefined is returned, which is indistinguishable from the file not existing.

      Parameters

      • id: number

        the id of the file to get

      Returns LimeFile | undefined

      the file if a loaded limeobject owns it, otherwise undefined