summaryrefslogtreecommitdiffstats
path: root/library/Icinga/Web/Form/Element/Textarea.php
blob: 119cd56b3819f588a5e6023c2472ad300649af28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
/* Icinga Web 2 | (c) 2019 Icinga Development Team | GPLv2+ */

namespace Icinga\Web\Form\Element;

use Icinga\Web\Form\FormElement;

class Textarea extends FormElement
{
    public $helper = 'formTextarea';

    public function __construct($spec, $options = null)
    {
        parent::__construct($spec, $options);

        if ($this->getAttrib('rows') === null) {
            $this->setAttrib('rows', 3);
        }
    }
}