Phials plugin documentation
User guide
AI Disclosure: This page was generated by an LLM and may contain inaccuracies. Hand-crafted documentation will be implemented over time on the road to 1.0

MetadataSchemaField

Since Plugin API: 1.0.0

Schema field for metadata display

Signature

interface MetadataSchemaField {
    key: string;
    label: string;
    type: "string" | "number" | "date" | "boolean" | "array" | "dynamic-enum";
    format?: "html";
    rawKey?: string;
    icon?: string;
}

Members

NameTypeRequiredDescription
keystringyes-
labelstringyes-
type"string" | "number" | "date" | "boolean" | "array" | "dynamic-enum"yes-
format"html"noOptional hint for how extracted values should be presented in schema-driven UI (Details columns, preview Metadata, thumbnail captions), paired with type. v1 implements "html" only (sanitized render from key); requires rawKey. On formatted fields, type describes the raw value semantics for sort/filter.
rawKeystringnoExtracted key for sort, filter, and logic (not a separate schema row). Required when format: "html".
iconstringnoOptional Iconify id for column header / property list chrome