public function table()
{
if (empty($this->columns)) {
throw new \InvalidArgumentException("There are no columns defined");
}
return $this->viewFactory->make($this->tableView, ['columns' => $this->columns, 'showHeaders' => $this->printHeaders, 'id' => $this->tableId, 'endpoint' => $this->endpointURL])->render();
}