Skip to content

View entry

ViewEntry is the escape hatch for custom HTML inside an infolist. Supply markup with .view(...) or .content(...) (aliases). Content is not auto-escaped — sanitize untrusted data yourself.

Reach for ViewEntry when no typed entry fits — counters, custom badges, or small composed HTML blocks that still need an accessible label. Shared Entry chrome (label, helper, hidden label) still wraps the custom markup in the usual stacked entry shell.

app/orbit/resources/post_resource.py
from almasix.orbit.infolists import ViewEntry
ViewEntry.make("summary")
.label("Summary")
.content("<strong>3</strong> modules ready")

Orbit View entry basic (light)

Orbit View entry basic (dark)

Build markup from state / record at render time.

app/orbit/resources/post_resource.py
ViewEntry.make("title")
.label("Headline")
.content(
lambda state=None, **_: f'<span class="or-badge or-color-success">{state}</span>'
)

Orbit View entry callable (light)

Orbit View entry callable (dark)

app/orbit/resources/post_resource.py
ViewEntry.make("custom").view("<i>static</i>").hidden_label()

Orbit View entry hidden label (light)

Orbit View entry hidden label (dark)

Method Notes
.view / .content HTML string or callable
.hidden_label Screen-reader-only label
Shared chrome Helper, hint, tooltip — see overview