for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of cwdFancyGridBundle
*
* (c)2017 cwd.at GmbH <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cwd\FancyGridBundle\Column;
use Symfony\Component\OptionsResolver\OptionsResolver;
/**
* Class ChoiceType
* @package Cwd\FancyGridBundle\Column
* @author Ludwig Ruderstaler <[email protected]>
class ChoiceType extends AbstractColumn
{
* {@inheritdoc}
public function configureOptions(OptionsResolver $resolver)
parent::configureOptions($resolver);
$resolver->setDefaults(array(
'align' => 'left',
'cellAlign' => 'left',
'type' => 'combo',
'data' => [],
));
$resolver->setAllowedTypes('attr', 'array');
$resolver->setAllowedTypes('data', 'array');
}