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 |
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 |
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 |
public string $size | ||
return | string |
public string $tag | ||
return | string |
public string $type | ||
return | string |