* @package   RadekDostal\NetteComponents\ImageSelectBox
 * @example   https://componette.com/radekdostal/nette-imageselectbox/
 * @author    Ing. Radek Dostál, Ph.D. <*****@*****.**>
 * @copyright Copyright (c) 2011 - 2016 Radek Dostál
 * @license   GNU Lesser General Public License
 * @link      http://www.radekdostal.cz
 */
use Nette\Forms\Form;
use Tracy\Debugger;
require '../vendor/autoload.php';
Debugger::$strictMode = TRUE;
Debugger::enable();
RadekDostal\NetteComponents\ImageSelectBox::register();
$items = array('calendar' => array('Calendar', 'img/icon_calendar.gif'), 'shopping_cart' => array('Shopping Cart', 'img/icon_cart.gif'), 'cd' => array('CD', 'img/icon_cd.gif'), 'email' => array('E-mail', 'img/icon_email.gif'), 'faq' => array('FAQ', 'img/icon_faq.gif'), 'games' => array('Games', 'img/icon_games.gif'), 'music' => array('Music', 'img/icon_music.gif'), 'phone' => array('Phone', 'img/icon_phone.gif'), 'graph' => array('Graph', 'img/icon_sales.gif'), 'secured' => array('Secured', 'img/icon_secure.gif'), 'video' => array('Video', 'img/icon_video.gif'));
$form = new Form();
$form->addImageSelectBox('item', 'Item:', $items)->setPrompt('— select any item —')->setRequired();
$form->addSubmit('submit', 'Send');
if ($form->isSuccess()) {
    echo '<h2>Form was submitted and successfully validated</h2>';
    dump($form->getValues());
    exit;
}
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
  <meta charset="UTF-8">
  <meta name="author" content="Radek Dostál">
  <title>RadekDostal\NetteComponents\ImageSelectBox with jQuery and jQuery msDropDown plugin example</title>
  <link rel="stylesheet" type="text/css" href="js/jquery/plugins/msdropdown/css/dd.css">
  <script type="text/javascript" src="//code.jquery.com/jquery-3.1.0.min.js"></script>