@param string $label

@return Menu_jUI
8511
public function addSubMenu($label)
    {
        // we use MenuSeparator tag here just to put View_Popover outside of UL list.
        // Otherwise it breaks correct HTML and CSS.
        /** @type View_Popover $f */
        $f = $this->add('View_Popover');
        $this->addMenuItem($f->showJS('#'.$this->name.'_i'.count($this->items)), $label);

        return $f->add('Menu_jUI');
    }
878842
public function addGroup($label)
    {
        $objGroup = new SelectGroup($label);
        $objGroup->setMeta("parent", $this, true);

        $this->__options->addObject($objGroup);

        return $objGroup;
    }
1189046
public function getByLabel($label)
    {
        return isset($this->items[$label]) ? $this->items[$label] : null;
    }
480144
public function append($label): self
    {
        $label = $this->filterComponent($label);
        if (null === $label) {
            return $this;
        }

        return new self($this->getContent().self::SEPARATOR.$label);
    }
993049
public function addButton($label, $options = array())
    {
        $position = 'after';
        if (is_string($options)) {
            $position = $options;
        } else {
            if (isset($options['position'])) {
                $position = $options['position'];
            }
        }
        if ($position == 'after') {
            /** @type Button $button */
            $button = $this->afterField()->add('Button', $options);
            $button->set($label);
        } else {
            /** @type Button $button */
            $button = $this->beforeField()->add('Button', $options);
            $button->set($label);
        }
        $this->js('change', $button->js()->data('val', $this->js()->val()));

        return $button;
    }
609152
private function _setLabel($label) {
		if ($label && is_array($label)) {
			$this->label = $label;
			return true;
		}

		$singular = $this->singular;
		$plural = $this->plural ?: $singular . $this->plural_end;

		$this->label = array(
			'name' => ucfirst($plural),
			'singular' => ucfirst($singular),
			'menu_name' => ucfirst($singular),
			'all_items' => __('All', 'wba_taxonomy') . ' ' . $plural,
			'parent_item' => __('Parent', 'wba_taxonomy') . ' ' . $singular,
			'parent_item_colon' => __('Parent', 'wba_taxonomy') . ' ' . $singular,
			'new_item_name' => __('New', 'wba_taxonomy') . ' ' . $singular,
			'add_new_item' => __('Add New', 'wba_taxonomy') . ' ' . $singular,
			'edit_item' => __('Edit', 'wba_taxonomy') . ' ' . $singular,
			'update_item' => __('Update', 'wba_taxonomy') . ' ' . $singular,
			'view_item' => __('View', 'wba_taxonomy') . ' ' . $singular,
			'separate_items_with_commas' => __('Separate', 'wba_taxonomy') . strtolower($singular) . ' ' . __('with commas', 'wba_taxonomy'),
			'add_or_remove_items' => __('Add or remove', 'wba_taxonomy') . strtolower($singular),
			'choose_from_most_used' => __('Choose from the most used', 'wba_taxonomy'),
			'popular_items' => ucfirst($plural),
			'search_items' => __('Search', 'wba_taxonomy') . ' ' . $singular,
			'not_found' => __('Not Found', 'wba_taxonomy'),
			'no_terms' => __('No', 'wba_taxonomy') . ' ' . $singular,
			'items_list' => ucfirst($singular) . ' ' . __('list', 'wba_taxonomy'),
			'items_list_navigation' => ucfirst($singular) . ' ' . __('list navigation', 'wba_taxonomy'),
		);

		return true;
	}
1258186
public function getSingleNodeByLabel($label)
    {
        foreach ($this->nodes as $node) {
            if ($node->hasLabel($label)) {
                return $node;
            }
        }

        return;
    }
1180212
public static function button($label = 'button', $htmlOptions = array())
    {
        $htmlOptions = ArrayHelper::defaultValue('name', \CHtml::ID_PREFIX . \CHtml::$count++, $htmlOptions);
        Html::clientChange('click', $htmlOptions);
        return static::btn('button', $label, $htmlOptions);
    }
239768
public function addButton($label = 'Continue')
    {
        if (!is_array($label)) {
            $label = array($label, 'icon-r' => 'right-big');
        }

        /** @type Button $button */
        $button = $this->add('Button', null, 'Button');

        return $button->set($label);
    }
1185620
public function label($label)
    {
        if ($label === false) {
            $this->parts['{label}'] = '';
        } else {
            $this->parts['{label}'] = $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;
    }
1270373
public function setToggle($label)
    {
        if ($label instanceof Button) {
            $this->toggle = $label;
        } else {
            $this->toggle = new Button($label);
            $this->entity->setEntityName($label);
        }

        $this->toggle->attributes->addAttribute('data-toggle', 'dropdown');
        $this->toggle->attributes->addAttribute('aria-haspopup', true);
        $this->toggle->attributes->addAttribute('aria-expanded', false);
        $this->toggle->attributes->addAttributeClass('dropdown-toggle');

        return $this;
    }
916654
public function setLabel($label)
    {
        parent::setLabel($label);
        if (isset($this->token['captcha'])) {
            if ((strpos($this->token['captcha'], '<img') === false) &&
                ((strpos($this->token['captcha'], ' + ') !== false) ||
                 (strpos($this->token['captcha'], ' - ') !== false) ||
                 (strpos($this->token['captcha'], ' * ') !== false) ||
                 (strpos($this->token['captcha'], ' / ') !== false))) {
                $this->label = $this->label . '(' .
                    str_replace([' * ', ' / '], [' &#215; ', ' &#247; '], $this->token['captcha'] .')');
            } else {
                $this->label = $this->label . $this->token['captcha'];
            }
        }
        return $this;
    }
144733
public function addMenuItem(\Gems_Menu_SubMenuItem $menuItem, $label = null)
    {
        $key = $this->_getKey($menuItem->get('controller'), $menuItem->get('action'));

        if ($label) {
            $this->altLabels[$key] = $label;
        }

        $this->offsetSet($key, $menuItem);
        return $this;
    }
114798
public function getButtonLabel($label)
    {
        if ($label instanceof Closure) {
            $label = call_user_func($label, $this);
        } else {
            $label = Yii::t('hipanel', $label, ['count' => count($this->getSpoiledItems())]);
        }

        return $label;
    }
808487
protected function translateLabel($label)
    {
        if (null !== ($translator = $this->getTranslator())) {
            $label = $translator->translate(
                $label, $this->getTranslatorTextDomain()
            );
        }

        return $label;
    }
394223
public function addCalendarPage($label)
    {
        $page = $this->addPage($label, 'pr.calendar', 'calendar');
        $page->addAutofilterAction();
        $page->addExportAction();
        $page->addImportAction();
        $page->addAction(null, 'pr.calendar.simple-api', 'simple-api');

        return $page;
    }