method addWidget documentation in bbn\Appui\Dashboard
Adds a widget to the current dashboard
function(string $id)
{
if ($this->_check()) {
if (!Str::isUid($id)) {
throw new \Exception(_("The id must be a uuid"));
}
if (!($text = $this->opt->text($id))) {
throw new \Exception(sprintf(_("No text for the widget with id %s"), $id));
}
return $this->pref->addBit(
$this->id,
[
$this->archBits['id_option'] => $id,
$this->archBits['text'] => $text,
$this->archBits['num'] => $this->pref->getMaxBitNum($this->id, null, true) ?: 1
]
);
}
return null;
}
Adds a widget to the current dashboard BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2024
BBN Solutions