Placeholder
Helper for rendering placeholders
- Full name:
\TwbsHelper\View\Helper\Placeholder - Parent class:
\TwbsHelper\View\Helper\AbstractHtmlElement
Constants
| Constant | Visibility | Type | Value |
|---|---|---|---|
ANIMATION_GLOW | public | 'glow' | |
ANIMATION_WAVE | public | 'wave' |
Properties
allowedAnimations
protected static $allowedAnimations
- This property is static.
allowedOptions
protected static $allowedOptions
- This property is static.
formButtonHelper
protected \TwbsHelper\Form\View\Helper\FormButton|null $formButtonHelper
Methods
__invoke
Generates a 'placeholder' element
public __invoke(int|iterable $optionsAndAttributes = [], bool $escape = true): string
Parameters:
| Parameter | Type | Description |
|---|---|---|
$optionsAndAttributes | int|iterable | options and Html attributes of the "<span>" element |
$escape | bool | True espace html content '$content'. Default True |
Return Value:
The placeholder XHTML.
Throws:
InvalidArgumentException
renderPlaceholder
protected renderPlaceholder(mixed $optionsAndAttributes, bool $escape): string
Parameters:
| Parameter | Type | Description |
|---|---|---|
$optionsAndAttributes | mixed | |
$escape | bool |
prepareAttributes
protected prepareAttributes(mixed $optionsAndAttributes): \TwbsHelper\View\HtmlAttributesSet
Parameters:
| Parameter | Type | Description |
|---|---|---|
$optionsAndAttributes | mixed |
prepareAttributesForColumn
protected prepareAttributesForColumn(\TwbsHelper\View\HtmlAttributesSet $optionsAndAttributes): mixed
Parameters:
| Parameter | Type | Description |
|---|---|---|
$optionsAndAttributes | \TwbsHelper\View\HtmlAttributesSet |
prepareAttributesForSize
protected prepareAttributesForSize(\TwbsHelper\View\HtmlAttributesSet $optionsAndAttributes): mixed
Parameters:
| Parameter | Type | Description |
|---|---|---|
$optionsAndAttributes | \TwbsHelper\View\HtmlAttributesSet |
renderButton
protected renderButton(mixed $optionsAndAttributes): string
Parameters:
| Parameter | Type | Description |
|---|---|---|
$optionsAndAttributes | mixed |
prepareAttributesForButton
protected prepareAttributesForButton(mixed $optionsAndAttributes): \TwbsHelper\View\HtmlAttributesSet
Parameters:
| Parameter | Type | Description |
|---|---|---|
$optionsAndAttributes | mixed |
getAnimationClass
protected getAnimationClass(string $animation): string
Parameters:
| Parameter | Type | Description |
|---|---|---|
$animation | string |
getFormButtonHelper
public getFormButtonHelper(): \TwbsHelper\Form\View\Helper\FormButton