EccPanel
EccPanel is a titled box around a part of a form. The header shows an optional icon and title; with collapsible a click on the header folds the panel. With an id a page validator can hide it.
TSX
import { EccPanel } from "@/ecc/components/forms/EccPanel";
Example
TSX
<EccPanel id="purchase-contact" title="Contact person" icon="user" collapsible>
<EccText fieldLabel="Name" value="purchase.contactPerson.name" data={draft} valueOut editable />
</EccPanel>
Ecc components in this example: EccText - how to use them is described in UI Components.
Behaviour
- The header is shown when the panel has a
title, aniconor iscollapsible; otherwise only the body is rendered. - The header has a grey background unless
titleTransparentis set. - A collapsed panel does not render its body. It always starts open.
hiddenorsetHidden(id, true)in the page validator removes the whole panel.
Props
Prop
Type
Default
Description
|
| - | for |
|
| - | heading |
| icon preset or Font Awesome class | - | icon before the title |
|
|
| can be collapsed |
|
|
| title without background |
|
|
| hide |
|
| styling |
Icon presets:
user,mail,id,key,hash,link,copy,clipboard: general iconstask-open,task-wip,task-done: task statesprocess-pending,process-active,process-completed,process-aborted,process-suspended,process-failed: process states
Related
Page
Relation
overview of all layout components | |
labelled sub group inside a panel | |
hides the panel by |
Was this section helpful?
On this page
- EccPanel