Back to InlinehelpButton class

Method fetchButton

public string
fetchButton
(mixed $type = 'Inlinehelp', string $targetClass = 'hide-aware-inline-help', string $text = 'JINLINEHELP', string $icon = 'fa fa-question-circle', string $buttonClass = 'btn btn-info')
Fetches the button HTML code.
Parameters
  • string $type Unused string.
  • string $targetClass The class of the DIVs holding the descriptions to toggle.
  • string $text Button label
  • string $icon Button icon
  • string $buttonClass Button class
Returns
  • string
Since
  • 4.1.0
Deprecated
  • 5.0

Method fetchButton - Source code

/**
 * Fetches the button HTML code.
 *
 * @param   string  $type         Unused string.
 * @param   string  $targetClass  The class of the DIVs holding the descriptions to toggle.
 * @param   string  $text         Button label
 * @param   string  $icon         Button icon
 * @param   string  $buttonClass  Button class
 *
 * @return  string
 *
 * @since       4.1.0
 *
 * @deprecated  5.0 Use render() instead.
 */
public function fetchButton($type = 'Inlinehelp', string $targetClass = 'hide-aware-inline-help', string $text = 'JINLINEHELP', string $icon = 'fa fa-question-circle', string $buttonClass = 'btn btn-info')
{
    $this->name('inlinehelp')->targetclass($targetClass)->text($text)->icon($icon)->buttonClass($buttonClass);
    return $this->renderButton($this->options);
}