PHP Class WPDKTwitterBootstrapButton

## Overview This class is a wrap of Twitter Bootstrap Button
Deprecation: since 1.4.21
Author: =undo= ([email protected])
Inheritance: extends WPDKTwitterBootstrap
Afficher le fichier Open project: wpxtreme/wpdk

Méthodes publiques

Свойство Type Description
$block boolean Display the button as block
$disabled boolean TRUE to disabled the button
$href string Usage only for tag anchor
$label string The button label
$size string Any of WPDKTwitterBootstrapButtonSize enums
$tag string You can choose A, BUTTON or INPUT tag type. Usage WPDKHTMLTagName enums.
$type string Any of WPDKTwitterBootstrapButtonType enum

Méthodes publiques

Méthode Description
__construct ( string $id, string $label, string $type = WPDKTwitterBootstrapButtonType::PRIMARY, string $tag = WPDKHTMLTagName::BUTTON ) : WPDKTwitterBootstrapButton Create and instance of WPDKTwitterBootstrapButton class
html ( ) : string Return the HTML markup for the button

Method Details

__construct() public méthode

Create and instance of WPDKTwitterBootstrapButton class
public __construct ( string $id, string $label, string $type = WPDKTwitterBootstrapButtonType::PRIMARY, string $tag = WPDKHTMLTagName::BUTTON ) : WPDKTwitterBootstrapButton
$id string ID and name of tag
$label string Label of button
$type string Optional. Any WPDKTwitterBootstrapButtonTyped enum
$tag string Optional. Type of tag
Résultat WPDKTwitterBootstrapButton

html() public méthode

Return the HTML markup for the button
public html ( ) : string
Résultat string

Property Details

$block public_oe property

Display the button as block
public bool $block
Résultat boolean

$disabled public_oe property

TRUE to disabled the button
public bool $disabled
Résultat boolean

$href public_oe property

Usage only for tag anchor
public string $href
Résultat string

$label public_oe property

The button label
public string $label
Résultat string

$size public_oe property

Any of WPDKTwitterBootstrapButtonSize enums
public string $size
Résultat string

$tag public_oe property

You can choose A, BUTTON or INPUT tag type. Usage WPDKHTMLTagName enums.
public string $tag
Résultat string

$type public_oe property

Any of WPDKTwitterBootstrapButtonType enum
public string $type
Résultat string