feat(badges): cfg_json body_text_color applied in renderer
This commit is contained in:
35
src/lib/ae_events/types/ae_badge_template_cfg.ts
Normal file
35
src/lib/ae_events/types/ae_badge_template_cfg.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
// Type definition for badge template cfg_json stored on templates.
|
||||
export interface BadgeTemplateCfg {
|
||||
hide_badge_header?: boolean;
|
||||
hide_badge_footer?: boolean;
|
||||
show_qr_front?: boolean;
|
||||
show_qr_back?: boolean;
|
||||
|
||||
// Per-field hide toggles
|
||||
hide_title?: boolean;
|
||||
hide_affiliations?: boolean;
|
||||
hide_location?: boolean;
|
||||
|
||||
// Alignment overrides
|
||||
align?: {
|
||||
name?: string;
|
||||
title?: string;
|
||||
affiliations?: string;
|
||||
location?: string;
|
||||
};
|
||||
|
||||
// QR alignment
|
||||
qr_alignment?: {
|
||||
front?: string;
|
||||
back?: string;
|
||||
};
|
||||
|
||||
// Layout fit height overrides
|
||||
fit_heights?: Record<string, string>;
|
||||
|
||||
// Body text color: either a Tailwind `text-*` class or a hex color like `#112233`.
|
||||
body_text_color?: string;
|
||||
|
||||
// Allow arbitrary extra keys to preserve forward-compatibility.
|
||||
[key: string]: any;
|
||||
}
|
||||
Reference in New Issue
Block a user