public function buildButton($type, $title, $name = '', $id = '', $class = '', $attributes = [])
    {
        // Create new form button
        $id = $id ?: 'fb' . mt_rand();
        $element = new FormButton($this->getHTMLDocument(), $type, $name, $id, $title, $attributes);

        // Add class
        $element->addClass($class);

        // Return form element
        return $element;
    }