Palette
    Preparing search index...

    Function define

    • Define a Palette Component using the shorthand syntax

      Type Parameters

      • StateShape extends object = {}

      Parameters

      Returns typeof Component

      define("my-component", {
      template: html`...`,
      style: css`...`,
      initialState: { ... },
      computedProperties() { ... },
      script() { ... },
      // and any other lifecycle methods
      });
    • Register a Palette Component as a custom element

      Type Parameters

      Parameters

      • definition: Cls

      Returns Cls

    • Register a Palette Component as a custom element

      Type Parameters

      Parameters

      • tagName: string
      • definition: Cls

      Returns Cls