TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\Template\Components\Buttons\FullyRenderedButton Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Template\Components\Buttons\FullyRenderedButton:
TYPO3\CMS\Backend\Template\Components\Buttons\ButtonInterface

Public Member Functions

 getHtmlSource ()
 
 setHtmlSource ($htmlSource)
 
 getType ()
 
 isValid ()
 
 __toString ()
 
 render ()
 

Protected Attributes

 $htmlSource = ''
 

Detailed Description

FullyRenderedButton

This button type is an intermediate solution for buttons that are rendered by methods from TYPO3 itself, like the CSH buttons or Bookmark buttons.

There should be no need to use them, so do yourself a favour and don't.

EXAMPLE USAGE TO ADD A BUTTON TO THE FIRST BUTTON GROUP IN THE LEFT BAR:

$buttonBar = $this->moduleTemplate->getDocHeaderComponent()->getButtonBar(); $myButton = $buttonBar->makeFullyRenderedButton() ->setHtmlSource('<span class="i-should-not-be-using-this>Foo'); $buttonBar->addButton($myButton, ButtonBar::BUTTON_POSITION_LEFT, 1);

Definition at line 32 of file FullyRenderedButton.php.

Member Function Documentation

◆ __toString()

TYPO3\CMS\Backend\Template\Components\Buttons\FullyRenderedButton::__toString ( )

◆ getHtmlSource()

TYPO3\CMS\Backend\Template\Components\Buttons\FullyRenderedButton::getHtmlSource ( )

◆ getType()

TYPO3\CMS\Backend\Template\Components\Buttons\FullyRenderedButton::getType ( )

◆ isValid()

◆ render()

TYPO3\CMS\Backend\Template\Components\Buttons\FullyRenderedButton::render ( )

◆ setHtmlSource()

TYPO3\CMS\Backend\Template\Components\Buttons\FullyRenderedButton::setHtmlSource (   $htmlSource)

Sets the HTML Source of the button and returns itself

Parameters
string$htmlSourceHTML sourcecode of the button
Returns
FullyRenderedButton

Definition at line 60 of file FullyRenderedButton.php.

References TYPO3\CMS\Backend\Template\Components\Buttons\FullyRenderedButton\$htmlSource.

Member Data Documentation

◆ $htmlSource

TYPO3\CMS\Backend\Template\Components\Buttons\FullyRenderedButton::$htmlSource = ''
protected