Skip to main content

JustifyContent


Constants

ConstantVisibilityTypeValue
JUSTIFY_CONTENT_STARTpublic'start'
JUSTIFY_CONTENT_ENDpublic'end'
JUSTIFY_CONTENT_CENTERpublic'center'
JUSTIFY_CONTENT_BETWEENpublic'between'
JUSTIFY_CONTENT_AROUNDpublic'around'
JUSTIFY_CONTENT_EVENLYpublic'evenly'

Properties

optionName

protected static $optionName
  • This property is static.

prefix

protected static $prefix
  • This property is static.

allowedJustifyContentOptions

protected static $allowedJustifyContentOptions
  • This property is static.

Methods

getClassesFromOption

Retrieve the expected html classes releated to the given option

public getClassesFromOption(mixed $options): array

Parameters:

ParameterTypeDescription
$optionsmixed

Return Value:

the list of expected classes


validateStringOption

protected validateStringOption(string $option): mixed

Parameters:

ParameterTypeDescription
$optionstring

Inherited methods

setHtmlClassHelper

Set htmlclasshelper

public setHtmlClassHelper(\TwbsHelper\View\Helper\HtmlAttributes\HtmlClass $htmlclasshelper): \TwbsHelper\View\Helper\HtmlAttributes\HtmlClass\Helper\AbstractHelper

Parameters:

ParameterTypeDescription
$htmlclasshelper\TwbsHelper\View\Helper\HtmlAttributes\HtmlClass

getHtmlClassHelper

Retrieve HtmlClass helper instance

public getHtmlClassHelper(): null|\TwbsHelper\View\Helper\HtmlAttributes\HtmlClass

getClassesFromOption

Retrieve the expected html classes releated to the given option

public getClassesFromOption(mixed $options): array

Parameters:

ParameterTypeDescription
$optionsmixed

Return Value:

the list of expected classes


validateOption

protected validateOption(mixed $option): mixed

Parameters:

ParameterTypeDescription
$optionmixed

validateStringOption

protected validateStringOption(string $option): mixed

Parameters:

ParameterTypeDescription
$optionstring