Component description
The settings property configures the behavior of a panel.
Minimal JSON
{}{
"type": "panel",
"settings": {
"visibleToRoles": [
"ADMIN",
"CONTRIBUTOR"
],
"visibleToGroups": [
"HR",
"Finance"
],
"defaultOpen": false
}
}Nested properties
| Property | Description | Values | Mandatory |
|---|---|---|---|
visibleToRoles | Array of selected Dawiso user roles who can see the panel. Supported values are: ADMIN, CONTRIBUTOR, VIEWER, GUEST. The ROLE_ prefix and any letter case are also accepted. | array of strings | No |
visibleToGroups | Array of user group names whose members can see the panel. Groups are referenced by name (case-insensitive, surrounding spaces ignored), not by ID. | array of strings | No |
defaultOpen | Determines whether the panel is open by default. | boolean | No |
Visibility rules
- Roles and groups work as a union: a user sees the panel when they have one of the listed roles or belong to one of the listed groups.
- Administrators always see the panel.
- An empty or missing
visibleToRolesandvisibleToGroupsmeans the panel is visible to everyone. - If every role in
visibleToRolesis unknown, the panel becomes visible to administrators only. It never becomes public. - Group membership is checked when the object page loads. A membership change applies on the user’s next page load.
Visibility is a view customization, not access control. It applies to the object page only (read view, inline edit, fullscreen editor, and panel description). Hidden values stay available through the API, API tables and bulk edit, search, Excel and Word export, and the create dialog.