MediaWiki REL1_37
MediaWiki\Widget\SpinnerWidget Class Reference

PHP version of jquery.spinner. More...

Public Member Functions

 __construct (array $config=[])
 
 __toString ()
 Magic method implementation.
 
 toString ()
 Render element into HTML.
 

Private Attributes

 $attributes
 
 $content
 

Detailed Description

PHP version of jquery.spinner.

If used with jquery.spinner.styles, can be used to show a spinner before JavaScript has loaded.

Note
2011-2020 MediaWiki Widgets Team and others; see AUTHORS.txt
MIT

Definition at line 14 of file SpinnerWidget.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Widget\SpinnerWidget::__construct ( array  $config = [])
Parameters
array$configConfiguration options

Definition at line 22 of file SpinnerWidget.php.

References $type.

Member Function Documentation

◆ __toString()

MediaWiki\Widget\SpinnerWidget::__toString ( )

Magic method implementation.

Copied from OOUI\Tag

Returns
string

Definition at line 60 of file SpinnerWidget.php.

References MediaWiki\Widget\SpinnerWidget\toString().

◆ toString()

MediaWiki\Widget\SpinnerWidget::toString ( )

Render element into HTML.

Returns
string HTML serialization

Definition at line 49 of file SpinnerWidget.php.

Referenced by MediaWiki\Widget\SpinnerWidget\__toString().

Member Data Documentation

◆ $attributes

MediaWiki\Widget\SpinnerWidget::$attributes
private

Definition at line 16 of file SpinnerWidget.php.

◆ $content

MediaWiki\Widget\SpinnerWidget::$content
private

Definition at line 17 of file SpinnerWidget.php.


The documentation for this class was generated from the following file: