Class AbstractWidget
Abstract Widget
- Html
- Blesta\Core\Util\Widgets\AbstractWidget
Namespace: Blesta\Core\Util\Widgets
Package: blesta\core\Util\Widgets
Copyright: Copyright (c) 2020, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at core/Util/Widgets/AbstractWidget.php
public
|
|
public
|
#
setLinkButtons( array $link_buttons )
Sets navigation buttons along with AbstractWidget::setLinks(). This method may only be used in addition with AbstractWidget::setLinks() |
public
|
#
setWidgetButton( string|array $button )
Set a widget button to be displayed in the title bar of the widget |
public
|
#
setStyleSheet( string $path, array $attributes = null )
Sets a style sheet to be linked into the document |
public
|
#
setFilters(
Sets a list of widget filters |
public
|
#
setFilterHtml( string $html, boolean $show_filters = false )
Sets HTML for the widget filtering form |
public
|
|
public
|
#
setAjaxFiltering( boolean $ajax = true )
Sets whether to submit filters and reload widget via ajax |
public
|
#
setOutput( boolean $return )
Set whether to return $output generated by these methods, or to echo it out instead |
protected
string
|
|
protected
|
protected
string
|
$eol
The string to use as the end of line character, "\n" by default |
#
"\n"
|
protected
boolean
|
$return_output
Whether or not to return output from various widget methods |
#
false
|
protected
array
|
$widget_buttons
Buttons that should be displayed within the window |
#
[]
|
protected
array
|
$style_sheets
An array of style sheet attributes to be rendered into the DOM |
#
[]
|
protected
string
|
$render
How to render the widget. Options include:
|
|
protected
array
|
$nav
$nav An array of navigation elements |
#
[]
|
protected
string
|
$nav_type
$nav_type Sets the navigation type:
|
#
'links'
|
protected
array
|
$link_buttons
$link_buttons An array of link buttons |
#
[]
|
protected
InputFilters
|
$filters
A list of input fields to display in the widget filtering form |
|
protected
boolean
|
$show_filters
Whether to show the filter content on page load |
|
protected
boolean
|
$ajax_filtering
Whether to submit filters and reload widget via ajax |
|
protected
string
|
$filter_html
The HTML to display either in or as the widget filtering form |
#
''
|
protected
string
|
$filter_uri
The uri to which the widget filtering form should be submitted |
#
''
|
protected
string
|
$header_link
The widget header link |
#
''
|