public function build($id = '', $class = '', $withCheckbox = false, $withBorder = true)
    {
        // Set element attributes
        $id = $id ?: 'dt' . mt_rand();
        $this->attr('id', $id);
        $this->addClass($class);

        // Set object variables
        $this->checkable = (!$withCheckbox ? false : true);
        $this->checkList = (!$withCheckbox ? null : []);

        // Add extra classes
        if ($this->checkable) {
            $this->addClass('checkable');
        }
        if ($withBorder) {
            $this->addClass('dgl_wb');
        }

        // Create grid list
        $this->gridList = $this->getFormFactory()->buildHtmlElement('ul', '', '', 'DataTableList');
        $this->append($this->gridList);

        return $this;
    }