PHP Class WPDKUIPopover

Since: 1.5.0
Author: =undo= ([email protected])
Inheritance: extends WPDKHTMLTag
Afficher le fichier Open project: wpxtreme/wpdk

Méthodes publiques

Свойство Type Description
$animation boolean Apply a CSS fade transition to the popover
$container boolean This option is particularly useful in that it allows you to position the popover in the flow of the document near the triggering element - which will prevent the popover from floating away from the triggering element during a window resize.
$content string Content
$delay integer | string Delay showing and hiding the popover (ms) - does not apply to manual trigger type If a number is supplied, delay is applied to both hide/show Object structure is: delay: { show: 500, hide: 100 }
$html boolean Use text if you're worried about XSS attacks.
$id string ID attribute of main content
$placement string When "auto" is specified, it will dynamically reorient the popover. For example, if placement is "auto left", the popover will display to the left when possible, otherwise it will display right.
$selector string In practice, this is used to enable dynamic HTML content to have popovers added. See http://jsfiddle.net/fScua/
$static boolean Render as static. Default is FALSE
$title string Title
$trigger string How popover is triggered - click | hover | focus | manual

Méthodes publiques

Méthode Description
__construct ( string $id, string $title = '', string $content = '', string $placement = WPDKUIPopoverPlacement::RIGHT ) : WPDKUIPopover Create an instance of WPDKUIPopover class
content ( ) : string Return the content of popover
html ( ) : string Return the HTML markup of Popover
title ( ) : string Title of popober

Method Details

__construct() public méthode

Create an instance of WPDKUIPopover class
public __construct ( string $id, string $title = '', string $content = '', string $placement = WPDKUIPopoverPlacement::RIGHT ) : WPDKUIPopover
$id string ID attribute
$title string Optional. Title of popover
$content string Optional. Content of popover
$placement string Optional. Default WPDKUIPopoverPlacement::RIGHT
Résultat WPDKUIPopover

content() public méthode

Return the content of popover
public content ( ) : string
Résultat string

html() public méthode

Return the HTML markup of Popover
public html ( ) : string
Résultat string

title() public méthode

Title of popober
public title ( ) : string
Résultat string

Property Details

$animation public_oe property

Apply a CSS fade transition to the popover
public bool $animation
Résultat boolean

$container public_oe property

This option is particularly useful in that it allows you to position the popover in the flow of the document near the triggering element - which will prevent the popover from floating away from the triggering element during a window resize.
public bool $container
Résultat boolean

$content public_oe property

Content
public string $content
Résultat string

$delay public_oe property

Delay showing and hiding the popover (ms) - does not apply to manual trigger type If a number is supplied, delay is applied to both hide/show Object structure is: delay: { show: 500, hide: 100 }
public int|string $delay
Résultat integer | string

$html public_oe property

Use text if you're worried about XSS attacks.
public bool $html
Résultat boolean

$id public_oe property

ID attribute of main content
public string $id
Résultat string

$placement public_oe property

When "auto" is specified, it will dynamically reorient the popover. For example, if placement is "auto left", the popover will display to the left when possible, otherwise it will display right.
public string $placement
Résultat string

$selector public_oe property

In practice, this is used to enable dynamic HTML content to have popovers added. See http://jsfiddle.net/fScua/
public string $selector
Résultat string

$static public_oe property

Render as static. Default is FALSE
public bool $static
Résultat boolean

$title public_oe property

Title
public string $title
Résultat string

$trigger public_oe property

How popover is triggered - click | hover | focus | manual
public string $trigger
Résultat string