Home  >  Article  >  PHP Framework  >  What are the yii widgets?

What are the yii widgets?

(*-*)浩
(*-*)浩Original
2019-12-04 10:45:072068browse

What are the yii widgets?

Most complex bootstrap components are wrapped into Yii widgets to allow for a more powerful syntax and integration with framework features. All widgets are under the namespace \yii\bootstrap:

ActiveForm (recommended learning: yii framework)

This type Mainly add $layout attribute to select Bootstrap 3 form layout.

Alert

Alert renders the alert bootstrap component.

Button

Button renders the bootstrap button.

ButtonDropdown

ButtonDropdown renders a group or split button dropdown bootstrap component.

ButtonGroup

ButtonGroup renders the button group bootstrap component.

Carousel

Carousel renders the Carousel Bootstrap JavaScript component.

Collapse

Collapse renders the Accordion Bootstrap JavaScript component.

Dropdown

Dropdown renders the Bootstrap drop-down menu component.

These widgets can quickly build bootstrap components based on boostrap CSS styles and directly generate HTML code.

The above is the detailed content of What are the yii widgets?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn