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
Show file Open project: wpxtreme/wpdk

Public Properties

Property 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

Public Methods

Method 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 method

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
return WPDKTwitterBootstrapButton

html() public method

Return the HTML markup for the button
public html ( ) : string
return string

Property Details

$block public property

Display the button as block
public bool $block
return boolean

$disabled public property

TRUE to disabled the button
public bool $disabled
return boolean

$href public property

Usage only for tag anchor
public string $href
return string

$label public property

The button label
public string $label
return string

$size public property

Any of WPDKTwitterBootstrapButtonSize enums
public string $size
return string

$tag public property

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

$type public property

Any of WPDKTwitterBootstrapButtonType enum
public string $type
return string