Skip to main content

ui:slotFilled

Check if a slot has content. Returns the content of the slot if it has content, otherwise returns false.

Using this ViewHelper is the equivalent of calling {f:slot() -> f:trim()}.

Example

<f:variable name="content" value="{ui:slotFilled()}" />
<f:if condition="{content}">
    // Slot has content
</f:if>

Arguments

Name Type Description Required Default
name string Name of the slot No 'default'