ui_class() html()
The classes of a user template's own markup per CSS framework driver: the Bootstrap classes under bs3 / bs4 / bs5, the class map's component under a UI plugin's driver (tw). For templates: {execute(html,ui_class,bs=pull-right;c=float;v=right)}. Escaped.
html()->ui_class($params = [])Опції
| Опція | Значення |
|---|---|
bs | The classes written under the Bootstrap drivers (byte for byte as before). |
c, v | The html5fw class map component and its variant (alert / danger, col / 4, text / muted, ...). |
s | A size of the component (xs for btn). |
Приклад
Muted text under any driver
Код
return '<p class="' . html()->ui_class(['bs' => 'text-muted', 'c' => 'text', 'v' => 'muted']) . '">Muted text under any driver</p>';Див. також: html/alert