What the DSL can't do
Limits to plan around before you ask bricksui.
The DSL describes structure and data. It is not a programming language. If you ask bricksui for one of these, it will fail or build something fragile. Plan around them.
| Can't do | Do this instead |
|---|---|
| Run JavaScript or define functions | Use JSONata expressions for small transforms |
| Pick a component based on data | Use #if / #else to show one of two fixed components |
| Join two data sources into one list | Join in the database query or the API |
Read $data inside a data source's @config | Save the value with dataSuccess + set_local_state, then refetch_data |
Use $item (or a #each alias) in an @on action | For per-row actions, build the rows with a JSONata map so values are filled in when the rows are made |
Put #if / #each on nodes made by a JSONata map | Use written-out nodes with #if / #each |
Declare $data on a child node | $data lives on the root only (and inside @asidePanels) |
| Custom loading or error screens | Loading and errors are handled by each component |
| Form validation rules | Use a pre-built component for complex forms |
mount, unmount or other events | Only press, submit, change, close and drop exist, plus a component's own events |
| Realtime from a REST API | Realtime is Supabase only. Use polling for REST |
Vue or Angular syntax (v-if, *ngFor) | Rejected. Use #if and #each |
Note
When a design hits one of these limits, the answer is usually a pre-built component or a flow handled by the chat agent, not a bigger spec.