Jet\UI_badge
Renderer od badge. Inherited from Jet\UI_Renderer_Single.
The badge must have a defined type, which will determine the colour scheme and other aspects of the design, if any. The following types are predefined (but of course you can make your own types):
Predefined types
| Constanta | Value |
|---|---|
| UI_badge::PRIMARY | primary |
| UI_badge::SECONDARY | secondary |
| UI_badge::WARNING | warning |
| UI_badge::INFO | info |
| UI_badge::SUCCESS | success |
| UI_badge::DANGER | danger |
| UI_badge::LIGHT | light |
| UI_badge::DARK | dark |
Overview of methods
| Method | Meaning of |
|---|---|
| public __construct( string $type, string $text ) |
Parameters:
|
| public getType( ) : string |
Returns the type |
| public getText( ) : string |
Returns the content of the element |