1. Go to this page and download the library: Download n2ref/coreui-panel library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
n2ref / coreui-panel example snippets
$panel = new \CoreUI\Panel('panel-id');
$panel->setTitle('Component Panel', 'CoreUI Framework');
$panel->addControlButton('Help');
$panel->setTabsType($panel::TABS_TYPE_TABS);
$panel->setTabsPosition($panel::TABS_POS_TOP_LEFT);
$panel->setTabsFill($panel::TABS_FILL_JUSTIFY);
$panel->setTabsWidth(200);
$panel->addTab('Home', 'tab1', 'data/tab1.json')->setActive(true);
$panel->addTab('Profile', 'tab2', 'data/tab2.json');
$panel->addTab('Disabled')->setDisabled(true);
$tab_dropdown = $panel->addDropdown('Dropdown');
$tab_dropdown->addItem('Tab title 3')->setDisabled(true);
$tab_dropdown->addItem('Tab title 4', 'tab4', 'data/tab3.json');
$tab_dropdown->addDivider();
$tab_dropdown->addItem('Tab title 5', 'tab5', 'data/tab4.json');
// Переопределение активного таба
$panel->setActiveTab('tab2');
$panel->setContent('Your content 1');
echo json_encode($panel->toArray());
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.