Add a agenda setup menu tree to the menu

@param string $label
@param array $other
@return \Gems_Menu_SubMenuItem
353610
public function addAgendaSetupMenu($label)
    {
        $setup = $this->addContainer($label);

        $setup->addAgendaSetupPage($this->_('Activities'),          'pr.agenda-activity',  'agenda-activity');
        $setup->addAgendaSetupPage($this->_('Procedures'),          'pr.agenda-procedure', 'agenda-procedure');
        $setup->addAgendaSetupPage($this->_('Diagnoses'),           'pr.agenda-diagnosis', 'agenda-diagnosis');
        $setup->addAgendaSetupPage($this->_('Locations'),           'pr.locations',        'location');
        $setup->addAgendaSetupPage($this->_('Healthcare staff'),    'pr.agenda-staff',     'agenda-staff');
        $setup->addBrowsePage(     $this->_('Track field filters'), 'pr.agenda-filters',   'agenda-filter');

        return $setup;
    }
519600
public function addSecondaryField(string $label, string $value): self
    {
        $this->secondaryFields[] = $this->setLabelValue($label, $value);

        return $this;
    }
1355887
public function addOption($value, string $label): Menu
    {
        $this->addMenuItem(
            new MenuOption(
                $value,
                $label,
                function (CliMenu $menu) {
                    $this->result = $menu->getSelectedItem()->getValue();
                    $menu->close();
                }
            )
        );

        return $this;
    }
372621
public function setLabel($label)
    {
        $this->textContent->prepend($label);
        $this->entity->setEntityName($label);

        return $this;
    }
1297487
public function addLabel(Label $label)
    {
        if (!$this->labels->contains($label)) {
            $this->labels->add($label);
            $label->setInteractionMatching($this);
        }
    }
1268962
public function addCurrentGrandParent($label = null)
    {
        $parent = $this->menu->getCurrentParent();

        if ($parent && (! $parent->isTopLevel())) {
            $grandPa = $parent->getParent();
            if ($grandPa && (! $grandPa->isTopLevel())) {
                $this->addMenuItem($grandPa, $label);
            }
        }
        return $this;
    }
611650
public function setLabel($label)
        {
            if (null !== $label && !is_string($label)) {
                throw new Exception(
                        'Invalid argument: $label must be a string or null');
            }

            $this->_label = $label;
            return $this;
        }
1185620
public function label($label)
    {
        if ($label === false) {
            $this->parts['{label}'] = '';
        } else {
            $this->parts['{label}'] = $label;
        }
        
        return $this;
    }
487986
public function addLabel($label)
    {
        if (null !== $label) {
            $l = (string) $label;
            if (!$this->hasLabel($l)) {
                $this->labels->add($l);

                return true;
            }
        }

        return false;
    }
1317105
public function addMenu(string $label, Addon\DropDownMenu $menu, bool $active = false, bool $disabled = false)
    {
        $this->items[] = [
            'label'    => $label, 
            'menu'     => $menu, 
            'active'   => $active, 
            'disabled' => $disabled
        ];
        return $this;
    }
42554
public function createGroup($label)
    {
        $group = new Select\Group();
        $group->textContent->push($label);

        $this->childNodes->push($group);

        return $this->childNodes->last();
    }
1359230
public static function make($name, $label = '')
    {
        return parent::make($name, $label)->separator(',')->options(
            Options::make()->append('', 1)
        );
    }
508674
public function label($label = null)
    {
        if (null === $label) {
            return $this->label;
        }
        $this->label = $label;

        return $this;
    }
375352
public function addOptions(array $options): Menu
    {
        foreach ($options as $value => $label) {
            $this->addOption($value, $label);
        }

        return $this;
    }
899317
public function setLabel($label) : self
    {
        $index = $this->getIndex($this->label);

        if (!$label instanceof Label && !$label instanceof HtmlElement) {
            $label = new Label($label);
        }

        $this->label = $label;

        if (is_null($index)) {
            array_unshift($this->elements, $label);
        } else {
            $this->elements[$index] = $label;
        }

        return $this;
    }
670923
public function setLabel($label)
    {
        if (!empty($label) && is_string($label) && ctype_print($label)) {
            $this->label = trim($label);
        }

        return $this;
    }
484144
public function add($columns, $label = null)
    {

        if (!is_array($columns)) {
            $columns = [$columns => $label];
        }

        foreach ($columns as $column => $label) {
            if (is_null($label)) {
                $label = str_replace(['_', '-'], ' ', ucfirst($column));
            }

            $this->add[$column] = $label;
        }

        return $this;
    }