final | |
|---|---|
readonly | |
extends |
AbstractControl |
Typed DTO for sap.ui.integration.widgets.Card.
The manifest property is a server-constructed URL pointing at
the Card's own endpoint (/ui5/card/{ns}@{ver}/manifest.json?{q}).
The SAP widget fetches and renders that manifest itself; the dashboard
JSON carries no integration-card payload — just the URL.
Built by {@see \LaravelUi5\Core\Ui5\Dashboard\Emitters\CardEmitter}, which composes the URL with bound slot values URL-encoded as query string (so the client never composes URLs — see Core Dashboard API v0.9 §D4).
design, displayVariant, width, height are the consumer-facing
appearance/sizing seats — set them in the artifact's getCard()
override. Defaults mirror the SAP defaults (Solid / Standard /
100% / auto).
layoutData is the grid-placement seat. When the Card sits inside a
sap.f.GridContainer (the default Dashboard composition), the
container's column/row grid governs each item's footprint. Without
layoutData, items snap to the GridContainer's default cell size
(typically 5rem × 80px) — visually too narrow for any non-tile
card. Set a {@see GridContainerItemLayoutData} with explicit
columns/rows to claim a hero footprint.
| Methods | ||
|---|---|---|
public
|
__construct(
string $manifest = '',
CardDesign $design = CardDesign::Solid,
CardDisplayVariant $displayVariant = CardDisplayVariant::Standard,
string $width = '100%',
string $height = 'auto',
?GridContainerItemLayoutData $layoutData = null,
Margin|ContentPadding|string|null $class = null,
)
|
# |
public
|
ui5Class(): string
|
# |
public
|
withManifest(string $manifest): self
|
# |
| Methods inherited from LaravelUi5\Core\Ui5\Controls\AbstractControl |
|---|
jsonSerialize() |
| Properties | |||
|---|---|---|---|
public
|
string
|
$manifest
|
# |
public
|
CardDesign
|
$design
|
# |
public
|
CardDisplayVariant
|
$displayVariant
|
# |
public
|
string
|
$width
|
# |
public
|
string
|
$height
|
# |
public
|
?GridContainerItemLayoutData
|
$layoutData
|
# |
public
|
Margin|ContentPadding|string|null
|
$class
|
# |