Widgets

Box

Ezadev\Admin\Widgets\Box used to generate box components:

use Ezadev\Admin\Widgets\Box;

$box = new Box('Box Title', 'Box content');

$box->removable();

$box->collapsable();

$box->style('info');

$box->solid();

echo $box;

The $content parameter is the content element of the Box, which can be either an implementation of the Illuminate\Contracts \ Support\Renderable interface, or other printable variables.

The Box::title($title) method is used to set the Box component title.

The Box::content($content) method is used to set the content element of a Box component.

The Box::removable() method sets the Box component as removable.

The Box::collapsable() method sets the Box component as collapsable.

Box::style($style) method sets the style of the Box component to fill in primary,info, danger,warning, success,default.

The Box::solid() method adds a border to the Box component.

Collapse

Ezadev\Admin\Widgets\Collapse class used to generate folding components:

The Collapse::add($title, $content) method is used to add a collapsed item to the collapsing component. The $title parameter sets the title of the item. The$content parameter is used to .

Form

Ezadev\Admin\Widgets\Form class is used to quickly build a form:

Form::__construct($data = []) generates a form object. If the $data parameter is passed, the elements in the$data array will be filled into the form.

Form::action($uri) method is used to set the form submission address.

Form::method($method) method is used to set the submit method of the form form, the default is POST method.

Form::disablePjax() disable pjax for form submit.

Infobox

The Ezadev\Admin\Widgets\InfoBox class is used to generate the information presentation block:

Refer to the section on the InfoBox in theindex()method of the home page layout file HomeController.php

Tab component

The Ezadev\Admin\Widgets\Tab class is used to generate the tab components:

The Tab::ad ($title, $content) method is used to add a tab, $title for the option title, and the$content tab for the content.

Table

Ezadev\Admin\Widgets\Table class is used to generate forms:

Last updated