DATA_PREFIX
DATA_PREFIX
Represents an html button.
__construct(string|\Fuman_Response_Data $content, boolean $wrapWithAnchor = false, string $type = 'fm_e_button_green') : \Fuman_Response_Data
Generates a html button. When $wrapWithAnchor is true, the outer element of the button will be an a-tag and inner elements are spans. If false, the button will be created with div's.
| string|\Fuman_Response_Data | $content | |
| boolean | $wrapWithAnchor | |
| string | $type |
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 |
getContent() : string|\Fuman_Response_Data|\Fuman_Component_Abstract
Gets content
createDefaultSubmitButton() : \app_core_component_button
Create default submit button