Download the PHP package quellabs/canvas-loom without Composer
On this page you can find all versions of the php package quellabs/canvas-loom. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download quellabs/canvas-loom
More information about quellabs/canvas-loom
Files in quellabs/canvas-loom
Package canvas-loom
Short Description Definition-driven page builder for Canvas that turns PHP builder definitions into data-bound admin interfaces.
License MIT
Homepage https://canvasphp.com
Informations about the package canvas-loom
Loom
A definition-driven page builder for Canvas that turns structured PHP definitions into interactive admin pages — forms, settings panels, editors — with automatic data binding and WakaPAC initialisation.
Installation
Quick Start
How It Works
You build a node tree using fluent PHP builders. Loom::render() walks the tree, delegates each node to a renderer, and
emits HTML with the appropriate WakaPAC initialisation scripts. Entity data passed to render() is automatically
distributed to field values via DOM hydration.
Node Types
| Node | Purpose |
|---|---|
Resource |
Page root — renders a <form> with header, title, save/cancel |
Section |
Visual grouping without WakaPAC init |
Tabs / Tab |
Tabbed interface managed by WakaPAC |
Panel |
Reactive WakaPAC container without tabs |
Columns / Column |
Flex layout with percentage widths |
Field |
Input with label, validation, and data binding |
Text |
Read-only label/value pair, supports interpolation |
Button |
Action trigger bound to WakaPAC expressions |
Fields
Dependent dropdowns are supported via ->dependsOn('parent_field'). Dependent fields must be direct siblings within the
same Column or Section.
Buttons
Buttons execute WakaPAC expressions via ->action(). Three variants: primary (default), ->secondary(), ->danger().
Every container exposes submit() and post(url) on its WakaPAC abstraction automatically.
Abstraction
Named message constants and other non-reactive properties can be added to a container's WakaPAC abstraction. Underscore-prefixed keys are non-reactive.
Notifications
Types: success, error, warning, info.
Custom Renderers
Extend AbstractRenderer, implement RendererInterface, and register on the Loom instance:
To override only specific nodes within a type, check the node properties and delegate to the default renderer for everything else.
All versions of canvas-loom with dependencies
quellabs/support Version *
quellabs/contracts Version ^1.0
quellabs/sculpt Version ^1.0