first version
This commit is contained in:
23
src/CGSelect.php
Normal file
23
src/CGSelect.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Itguild\PhpCgSelect;
|
||||
|
||||
class CGSelect
|
||||
{
|
||||
protected $driver;
|
||||
|
||||
public function __construct(string $selector, array $options = [])
|
||||
{
|
||||
$this->driver = new CGSelectDriver($selector, $options);
|
||||
}
|
||||
|
||||
public function getJS(){
|
||||
return $this->driver->getJS();
|
||||
}
|
||||
|
||||
public static function renderCDN($version = 'latest')
|
||||
{
|
||||
CGSelectDriver::renderCDN($version);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user