PHP 클래스 WPDKUIPopover

부터: 1.5.0
저자: =undo= ([email protected])
상속: extends WPDKHTMLTag
파일 보기 프로젝트 열기: wpxtreme/wpdk

공개 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

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
리턴 WPDKUIPopover

content() 공개 메소드

Return the content of popover
public content ( ) : string
리턴 string

html() 공개 메소드

Return the HTML markup of Popover
public html ( ) : string
리턴 string

title() 공개 메소드

Title of popober
public title ( ) : string
리턴 string

프로퍼티 상세

$animation 공개적으로 프로퍼티

Apply a CSS fade transition to the popover
public bool $animation
리턴 boolean

$container 공개적으로 프로퍼티

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
리턴 boolean

$content 공개적으로 프로퍼티

Content
public string $content
리턴 string

$delay 공개적으로 프로퍼티

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
리턴 integer | string

$html 공개적으로 프로퍼티

Use text if you're worried about XSS attacks.
public bool $html
리턴 boolean

$id 공개적으로 프로퍼티

ID attribute of main content
public string $id
리턴 string

$placement 공개적으로 프로퍼티

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
리턴 string

$selector 공개적으로 프로퍼티

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

$static 공개적으로 프로퍼티

Render as static. Default is FALSE
public bool $static
리턴 boolean

$title 공개적으로 프로퍼티

Title
public string $title
리턴 string

$trigger 공개적으로 프로퍼티

How popover is triggered - click | hover | focus | manual
public string $trigger
리턴 string