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

    Function borrowLooks

    • Registers each Clay component a page's framework rows take their look from that nothing has registered, from one spare Clay. A component the page's owner registers itself is left to it, so a face or a plugin app passing its own text box keeps the place it registers it in, and no spare is built for it.

      The same spare can bring Clay's own component for each other type the page has that nothing draws, such as a text row a fold adds to a page built without one. Clay registers its own only for the types on the page it is built with, in page order, so the spare is built from a row of each type in the page's order with the looks after them, and each component lands in the order the spare holds it.

      Type Parameters

      • Built extends { components?: Record<string, unknown> }

      Parameters

      • Clay: SpareClayConstructor<Built>

        Clay's constructor, which the spare is built with.

      • clay: LookClay

        The Clay the page is built on.

      • types: string[]

        Every row type on the page, as rowTypes in rows.ts gives them.

      • own: unknown[] = []

        The components the page's owner registers itself.

      • lacking: string[] = []

        The page's types that nothing draws, as typesWithoutComponent in rows.ts gives them.

      Returns string[]

      The look types it registered, in the order it registered them.