Pebble App Framework: Phone API
    Preparing search index...

    Function shortName

    • A name cut to fit a shortText. A name with a short form of its own takes it, and any other is cut to SHORT_TEXT_MAX, so a name that fits already goes as it is.

      Parameters

      • name: string

        The full name.

      • shortForms: Readonly<Record<string, string>>

        The short forms by full name, or by an id where the caller looks names up by id.

      Returns string

      The short form, or the name cut to fit.