header('Dropdown Menu') ->row(function (Row $row) { $row->column(3, $this->example1()); $row->column(3, $this->example2()); $row->column(3, $this->example3()); }); } protected function example1() { $menu1 = Dropdown::make($this->tian)->button('天干'); $menu2 = Dropdown::make() ->button('使用标题') ->buttonClass('btn btn-sm btn-inverse') ->options($this->tian, '天干') ->options($this->di, '地支'); $menu3 = Dropdown::make([1, 2, 3, Dropdown::DIVIDER, 4, 5])->button('中间加分隔线'); return Box::make( 'Example1', $menu1->render().' '.$menu2->render().' '.$menu3->render() ); } protected function example2() { $menu = Dropdown::make($this->tian); $menu->map(function ($v, $k) { if ($k === 7) { $this->divider(); } $k++; return "{$k}. $v"; }); return Box::make('Example2', function () use ($menu) { return "