Reference·JavaScript · @bimworks/viewercommonJavaScript

AnnotationTemplateKit

Variable in @bimworks/viewercommon.

API catalogue · @bimworks/viewercommon · Variable

TypeScript#
const AnnotationTemplateKit: { readonly 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))