Tabs

The tab tab can be quickly constructed using the Dcat\Admin\Widgets\Tab method.

Basic Usage

  1. <?php
  2. use Dcat\Admin\Widgets\Tab;
  3. $tab = Tab::make();
  4. // The first parameter is the tab TITLE, the second parameter is the content, and the third parameter is whether or not the tab is selected.
  5. $tab->add('Tab 1', view('...'), true);
  6. $tab->add('Option 2', 'html');
  7. // Adding tab links
  8. $tab->addLink('skip link', 'http://xxx');
  9. return $content->body($tab->withCard());

Switching display mode

  1. // theme color
  2. $tab = Tab::make()->theme();

vertically (vertical)

The vertical method allows the tab TITLE column to be aligned vertically.

  1. <?php
  2. use Dcat\Admin\Widgets\Tab;
  3. $tab = Tab::make();
  4. $tab->add('Tab 1', view('...'));
  5. $tab->add('Option 2', 'html');
  6. return $content->body($tab->withCard()->vertical());