BIM.works SDKs - v3.0.0-b.115
    Preparing search index...

    Variable AnnotationTemplateKitConst

    AnnotationTemplateKit: {
        css: string;
        avatar(name: string, ctx: TemplateContext): TemplateResult;
        hoverClass(ctx: TemplateContext): string;
        ink(fill: string): string;
        pill(color: string, label: string): TemplateResult;
    }

    What the built-in card templates share, for an application's own template: include css in the template's css for the card (.card, .head, .eyebrow, h3, .pill, .facts, .meta, .actions, .button, .avatar) and the raised hover (.raised, plus hoverClass(ctx))

    Type Declaration

    • Readonlycss: string
    • avatar: function
    • hoverClass: function
      • " hovered" while the annotation or its object is under the pointer, else ""

        Parameters

        Returns string

    • ink: function
      • #1B2733 or white, whichever reads better on the fill

        Parameters

        • fill: string

        Returns string

    • pill: function
      • A status pill: the word on its colour

        Parameters

        • color: string
        • label: string

        Returns TemplateResult