Overview

Namespaces

  • DcGeneral
    • Clipboard
    • Contao
      • Callback
      • Compatibility
      • DataDefinition
        • Definition
      • Dca
        • Builder
          • Legacy
        • Definition
        • Palette
        • Populator
      • Event
      • View
        • Contao2BackendView
          • Event
    • Controller
    • Data
    • DataDefinition
      • Builder
      • Definition
        • Properties
        • View
          • Panel
      • ModelRelationship
      • Palette
        • Builder
          • Event
        • Condition
          • Palette
          • Property
    • EnvironmentPopulator
    • Event
    • Exception
    • Factory
      • Event
    • Panel
    • View
      • Event

Classes

  • BaseButtonEvent
  • BaseGetButtonsEvent
  • BuildWidgetEvent
  • DecodePropertyValueForWidgetEvent
  • EditModelBeforeSaveEvent
  • EncodePropertyValueFromWidgetEvent
  • GetBreadcrumbEvent
  • GetEditModeButtonsEvent
  • GetGlobalButtonEvent
  • GetGlobalButtonsEvent
  • GetGroupHeaderEvent
  • GetOperationButtonEvent
  • GetParentHeaderEvent
  • GetPasteButtonEvent
  • GetPasteRootButtonEvent
  • GetPropertyOptionsEvent
  • GetSelectModeButtonsEvent
  • ManipulateWidgetEvent
  • ModelToLabelEvent
  • ParentViewChildRecordEvent
  • ResolveWidgetErrorMessageEvent
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Class BaseButtonEvent

Class BaseButtonEvent.

This event is the base for all button events for the Contao 2 backend view.

Symfony\Component\EventDispatcher\Event
Extended by DcGeneral\Event\AbstractEnvironmentAwareEvent implements DcGeneral\EnvironmentAwareInterface
Extended by DcGeneral\Contao\View\Contao2BackendView\Event\BaseButtonEvent

Direct known subclasses

DcGeneral\Contao\View\Contao2BackendView\Event\GetGlobalButtonEvent, DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent, DcGeneral\Contao\View\Contao2BackendView\Event\GetPasteButtonEvent, DcGeneral\Contao\View\Contao2BackendView\Event\GetPasteRootButtonEvent
Namespace: DcGeneral\Contao\View\Contao2BackendView\Event
Package: DcGeneral\Contao\View\Contao2BackendView\Event
Located at Contao/View/Contao2BackendView/Event/BaseButtonEvent.php
Methods summary
public mixed
# setAttributes( string $attributes )

Set the HTML attributes for the button.

Set the HTML attributes for the button.

This might be a string like: 'onclick="foo" style="float:left;"' etc.

Parameters

$attributes
string
$attributes The attributes to be used.

Returns

mixed
$this
public string
# getAttributes( )

Get the HTML attributes for the button.

Get the HTML attributes for the button.

Returns

string
public mixed
# setHtml( string $html )

Set the HTML code for the button.

Set the HTML code for the button.

Parameters

$html
string
$html The HTML code.

Returns

mixed
$this
public string
# getHtml( )

Get the HTML code for the button.

Get the HTML code for the button.

Returns

string
public mixed
# setKey( string $key )

Set the key/name for the button.

Set the key/name for the button.

Parameters

$key
string
$key The key/name to use.

Returns

mixed
$this
public string
# getKey( )

Get the action key/name for the button.

Get the action key/name for the button.

Returns

string
public mixed
# setLabel( string $label )

Set the button label text.

Set the button label text.

Parameters

$label
string
$label The label text to use.

Returns

mixed
$this
public string
# getLabel( )

Get the button label text.

Get the button label text.

Returns

string
public mixed
# setTitle( string $title )

Set the button title.

Set the button title.

Parameters

$title
string
$title The title text.

Returns

mixed
$this
public string
# getTitle( )

Get the button title.

Get the button title.

Returns

string
Methods inherited from DcGeneral\Event\AbstractEnvironmentAwareEvent
__construct(), getEnvironment()
Constants summary
string NAME 'dc-general.view.contao2backend.button'
#

The name of the event.

The name of the event.

Properties summary
protected string $attributes
#

The html attributes to use for the button.

The html attributes to use for the button.

protected string $html
#

The Html code to use for this button.

The Html code to use for this button.

protected string $key
#

The key/name of the button.

The key/name of the button.

protected string $label
#

The label to use for the button.

The label to use for the button.

protected string $title
#

The title to use for the button.

The title to use for the button.

Properties inherited from DcGeneral\Event\AbstractEnvironmentAwareEvent
$environment
contao-community-alliance/dc-general API documentation generated by ApiGen 2.8.0