DATA_PREFIX
DATA_PREFIX
Represents a tab container. Used by app_core_action_add.
__construct(string $id, boolean|null $disposeHiddenContent = false, string $type = self::TYPE_HORIZONTAL) : \Fuman_Response_Data
initializes the tab component, set template path and adds the js class
string | $id | |
boolean|null | $disposeHiddenContent | |
string | $type | set the type, horizontal or vertical |
setAttribute(string $key, string $value, boolean $appendValue = true, string $appendSpacer = ' ') : void
Sets an attribute. If $appendValue is true, the value is going to be appended with the $appendSpacer argument.
string | $key | |
string | $value | |
boolean | $appendValue | |
string | $appendSpacer |
addCssFile(string $path, string $media = 'all', string|null $packageName = null) : \Fuman_Response_Data
Add a CSS file
string | $path | |
string | $media | |
string|null | $packageName | Used for pack.php |
addJsFile(string $path, integer $javaScriptLoadType, string|null $packageName = null) : \Fuman_Response_Data
Add a Js file
string | $path | |
integer | $javaScriptLoadType | |
string|null | $packageName | Used for pack.php |
setTemplatePath(string $templatePath) : \Fuman_Response_Data
Sets script path
string | $templatePath |
addTab(string $name, string $title, string|\Fuman_Response_Data $component) : void
Adds a tab.
string | $name | unique name for the tab, is used as index |
string | $title | |
string|\Fuman_Response_Data | $component |