PHP code example of vitexsoftware / ease-twbootstrap-widgets
1. Go to this page and download the library: Download vitexsoftware/ease-twbootstrap-widgets 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/ */
vitexsoftware / ease-twbootstrap-widgets example snippets
$mpmenu = new \Ease\ui\MainPageMenu();
$mpmenu->addMenuItem('logo.png', 'Caption', 'https://url/');
new Ease\ui\TWBSwitch('swname', true, 1,['onText' => 'YES', 'offText' => 'NO']);
new \Ease\ui\BooleanLED(false, 'green');
new \Ease\ui\TBWTreeView('tree', 'data: getTree()');
new \Ease\ui\LangSelect()
new \Ease\ui\LiveAge(1530280004);
new \Ease\ui\SignInForm();
new PasswordInput($this->passwordField);
class Selector extends \Ease\Html\SelectTag
{
use \Ease\ui\Selectizer;
}
$properties = [
'valueField' => 'value',
'labelField' => 'key',
'searchField' => ['key', 'value']
];
$options = [
['key' => 'red', 'value' => 'Red'],
['key' => 'blue', 'value' => 'Blue'],
['key' => 'green', 'value' => 'Green'],
['key' => 'yellow', 'value' => 'Yellow'],
];
$s = new Selector('selector');
$s->selectize($properties, $options);