View Services ​
Directory: src/Services/View/
The View namespace provides PHP-side builders for constructing Vue component schemas and navigation structures that are passed to the frontend via Inertia props.
Classes ​
| Class | Description | Page |
|---|---|---|
| UComponent | Fluent builder for a single Vue component schema array | → |
| UWidget | Extends UComponent; wires Connector data into dashboard widget schemas | → |
| UWrapper | Static factory for grid-based layout wrappers (v-row / v-col) | → |
| ModularousNavigation | Builds sidebar navigation arrays with permissions, badges, and active states | → |
Rendering Model ​
UComponent::render() returns a plain PHP array:
php
[
'tag' => 'ue-form',
'attributes' => [...],
'slots' => [...],
'directives' => [...],
'elements' => [...], // only present when children exist
]This array is serialized to JSON by Inertia and consumed by the corresponding Vue component on the frontend. The tag key maps directly to a registered Vue component name.