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

    Function usesComponent

    • Whether any item on the page, sections and their nested items included, is of one component type. Clay builds the rows of a list that sits where a row goes, so a list is looked into, the way rowTypes in clay/rows.ts walks it.

      Parameters

      • items: ClayConfigItem[]

        The Clay config items to walk.

      • type: string

        The component type name to look for, such as 'themePreview'.

      Returns boolean

      True when any item carries that type.