Media Types
Media types handle formatted content and visual data.
Reference
Section titled “Reference”| Type | Expands To |
|---|---|
col.color() | string(7) - hex format #RRGGBB |
col.markdown() | text + markdown format hint |
col.html() | text + HTML format hint |
Example
Section titled “Example”export default table({ id: col.id(), content: col.markdown(), rendered_html: col.html(), theme_color: col.color(),});Color Format
Section titled “Color Format”Colors use 7-character hex format:
#FF5733 ✓#fff ✗ (use #FFFFFF)rgb() ✗Format Hints
Section titled “Format Hints”The markdown and html format hints inform API clients and admin UIs to
render appropriate editors. OpenAPI exports include format metadata for these
fields.