Documentation - v1.2.0-alpha.3
    Preparing search index...

    Factory class for creating various types of cards.

    Index

    Constructors

    Properties

    contentTypes: any = ...

    The content types supported by the card factory.

    Methods

    • Creates a hero card attachment.

      Parameters

      • title: string

        The title of the card.

      • Optionaltext: any

        The optional text for the card.

      • Optionalimages: any

        The optional images for the card.

      • Optionalbuttons: any

        The optional buttons for the card.

      • Optionalother: Partial<HeroCard>

        Additional properties for the card.

      Returns Attachment

      The hero card attachment.

    • Creates an OAuth card attachment.

      Parameters

      • connectionName: string

        The connection name.

      • title: string

        The title of the card.

      • text: string

        The optional text for the card.

      • signingResource: SignInResource

        The signing resource.

      • enableSso: boolean = true

        The option to enable SSO when authenticating using AAD. Defaults to true.

      Returns Attachment

      The OAuth card attachment.

    • Creates a thumbnail card attachment.

      Parameters

      • title: string

        The title of the card.

      • Optionaltext: any

        The optional text for the card.

      • Optionalimages: any

        The optional images for the card.

      • Optionalbuttons: any

        The optional buttons for the card.

      • Optionalother: Partial<ThumbnailCard>

        Additional properties for the card.

      Returns Attachment

      The thumbnail card attachment.