Pebble App Framework: Phone API
    Preparing search index...
    default: {
        initialize: (
            this: ThemePreviewContext,
            _minified?: unknown,
            clay?: ThemePreviewClay,
        ) => void;
        manipulator: string;
        name: string;
        style: string;
        template: string;
    }

    Type Declaration

    • initialize: (
          this: ThemePreviewContext,
          _minified?: unknown,
          clay?: ThemePreviewClay,
      ) => void

      Builds the dropdown's options and keeps the preview picture in step with the chosen theme.

      A function expression, never shorthand method syntax. Clay serialises a registered component by writing key: followed by the function's own toString, and a shorthand method stringifies with its name attached, which comes out as initialize:initialize() { and stops the whole settings page parsing.

      Clay calls this with the lodash build it bundles and then the config instance. The config instance carries the watch the page was opened from, which is how a platform-keyed theme knows which shots to draw.

    • manipulator: string
    • name: string

      The component type name, matched by a Clay config item's own type: 'themePreview'.

    • style: string
    • template: string