File

src/ui/layout-container/smart-layout-fragment-slot-host.interface.ts

Description

Contract that a dynamic layout slot host exposes to the form-scoped SmartLayoutFragmentService. Declared as an interface so the service does not import the concrete host component (avoids a circular module dependency).

Index

Properties
Methods

Methods

clearContent
clearContent()

Destroys the slot's currently rendered content (views and data sources).

Returns : void
loadContent
loadContent(source: string | SmartFormConfiguration | SmartFormLayoutFragment)

Loads a layout fragment from a URL or an already loaded layout object into the slot.

Parameters :
Name Type Optional Description
source string | SmartFormConfiguration | SmartFormLayoutFragment No
  • The fragment URL or layout object.
Returns : Promise<boolean>

Properties

dataSourcesContainer
dataSourcesContainer: ViewContainerRef
Type : ViewContainerRef

View container hosting the slot's merged data source components.

fragmentCleared
fragmentCleared: EventEmitter<void>
Type : EventEmitter<void>

Emits when the slot content has been cleared.

slotId
slotId: string
Type : string

Stable identifier used to scope registrations and cleanup for this slot.

results matching ""

    No results matching ""