PHP Класс WPDKTwitterBootstrapButton

## Overview This class is a wrap of Twitter Bootstrap Button
Устаревший: since 1.4.21
Автор: =undo= ([email protected])
Наследование: extends WPDKTwitterBootstrap
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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
Результат WPDKTwitterBootstrapButton

html() публичный Метод

Return the HTML markup for the button
public html ( ) : string
Результат string

Описание свойств

$block публичное свойство

Display the button as block
public bool $block
Результат boolean

$disabled публичное свойство

TRUE to disabled the button
public bool $disabled
Результат boolean

$href публичное свойство

Usage only for tag anchor
public string $href
Результат string

$label публичное свойство

The button label
public string $label
Результат string

$size публичное свойство

Any of WPDKTwitterBootstrapButtonSize enums
public string $size
Результат string

$tag публичное свойство

You can choose A, BUTTON or INPUT tag type. Usage WPDKHTMLTagName enums.
public string $tag
Результат string

$type публичное свойство

Any of WPDKTwitterBootstrapButtonType enum
public string $type
Результат string