Bootstrap 6 API reference
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
API reference › Bootstrap 6
Classes, interfaces, traits and enums of yii2\extensions\bootstrap6, generated from the PHPDoc of yii2-extensions/bootstrap6 at main. Machine-readable catalog: bootstrap6.json.
Namespaces
Section titled “Namespaces”| Namespace | Types |
|---|---|
yii2\ | 4 |
yii2\ | 11 |
yii2\ | 1 |
yii2\ | 9 |
Classes
Section titled “Classes”| Class | Summary |
|---|---|
Accordion | Renders a Bootstrap accordion built on native <details> and <summary> elements. |
ActiveField | Renders a Bootstrap 6 form field for the layouts of ActiveForm. |
ActiveForm | Renders a Bootstrap 6 form with default, horizontal, inline, or floating-label field layouts. |
Alert | Renders a Bootstrap alert with an optional heading and a dismiss button handled by the Alert plugin. |
Avatar | Renders a Bootstrap avatar with an image or initials and an optional status indicator. |
Badge | Renders a Bootstrap badge for counts, labels, and status indicators. |
BaseHtml abstract | Provides the Bootstrap 6 implementation of Html. |
Bootstrap final | Registers the yii.bootstrap6 message source when the application does not configure it. |
Breadcrumbs | Renders a Bootstrap breadcrumb trail with explicit .breadcrumb-divider elements between the items. |
Button | Renders a Bootstrap button, optionally as a toggle button handled by the Button plugin. |
ButtonGroup | Renders a Bootstrap button group from HTML strings and Button configurations. |
ButtonMenu | Renders a button that toggles a Menu, or a split button group with a separate menu toggle. |
ButtonToolbar | Renders a Bootstrap button toolbar from HTML strings and ButtonGroup configurations. |
Carousel | Renders a Bootstrap carousel with optional previous/next controls, play/pause control, and indicators. |
Chips | Renders a Bootstrap chip input: a .chip-input container with the initial chips, a .form-ghost text input and a hidden input that submits the chip values. |
Collapse | Renders a Bootstrap collapsible element, optionally preceded by a toggle button. |
Combobox | Renders a Bootstrap combobox: a .combobox-toggle button followed by a .menu of selectable items. |
Datepicker | Renders a Bootstrap datepicker as a text input, or as an inline calendar bound to a hidden input. |
Dialog | Renders a Bootstrap dialog on the native <dialog> element, optionally preceded by a toggle button. |
Drawer | Renders a Bootstrap drawer on the native <dialog> element, optionally preceded by a toggle button. |
Html final | Provides HTML helpers that render Bootstrap 6 markup. |
IconSet final | Provides the default SVG icons rendered by the widgets and lets applications replace them through the DI container. |
InputWidget abstract | Provides the base class for Bootstrap 6 form input widgets. |
LinkPager | Renders Bootstrap pagination links for a Pagination object. |
Menu | Renders the Bootstrap .menu panel with links, buttons, headers, dividers, text, and nested submenus. |
Nav | Renders a Bootstrap nav with links, active state detection by route, and items that toggle a Menu. |
NavBar | Renders a Bootstrap navbar whose content collapses into a drawer below the $expand breakpoint. |
NavOverflow | Renders a Nav inside a .nav-overflow wrapper that moves the items that do not fit into a “More” menu. |
OtpInput | Renders a Bootstrap OTP input: a single .otp-input text field inside an .otp container drawn as code slots. |
Placeholder | Renders a Bootstrap loading placeholder (skeleton) element. |
Popover | Renders an element that wraps the trigger content and shows a Bootstrap popover on click. |
Progress | Renders a Bootstrap progress bar, or a stacked progress bar when $bars is set. |
Range | Renders a Bootstrap range: a .form-range-input range input inside a .form-range wrapper, with optional tick marks from a <datalist>. |
Spinner | Renders a Bootstrap border or grow spinner with a visually hidden status label. |
Stepper | Renders a Bootstrap stepper as an ordered list of steps, or as a <div> of links when a step has a url. |
Strength | Renders a Bootstrap password strength meter, segmented or as a single bar, with optional text feedback. |
Tabs | Renders a nav of tab buttons and the matching .tab-pane panels for the Bootstrap Tab plugin. |
Toast | Renders a Bootstrap toast with an optional header and initializes its plugin. |
ToggleButtonGroup | Renders a group of checkbox or radio toggle buttons for a model attribute or a named input. |
Toggler | Renders an element that toggles a class or an attribute on click through the Bootstrap toggler plugin. |
Tooltip | Renders an element that wraps the trigger content and shows a Bootstrap tooltip on hover and focus. |
Widget | Provides the base class for Bootstrap 6 widgets. |
Traits
Section titled “Traits”| Trait | Summary |
|---|---|
AttributesTrait | Provides fluent methods that modify the HTML attributes of the widget element. |
BootstrapWidgetTrait | Provides Bootstrap plugin registration, client options, and client events for widgets. |
TogglerAttributesTrait | Provides fluent methods that modify the HTML attributes of the toggler rendered by the widget. |