Свойство | Тип | Описание | |
---|---|---|---|
$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 |
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 |
public string $size | ||
Результат | string |
public string $tag | ||
Результат | string |
public string $type | ||
Результат | string |