Свойство | 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é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 |
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 |
public string $size | ||
Résultat | string |
public string $tag | ||
Résultat | string |
public string $type | ||
Résultat | string |