Sets title on the edit collection item page
547402
protected function setTitleEditCollectionItem()
    {
        $vars = array('%name' => $this->data_collection['title']);

        if (empty($this->data_collection_item['collection_item_id'])) {
            $text = $this->text('Add item to %name', $vars);
        } else {
            $text = $this->text('Edit item of %name', $vars);
        }

        $this->setTitle($text);
    }
855743
def title(self, title, show=False):
        """"""
        self._write("title:%d:%s\n" % (int(show), title))
        return self
1054572
function set_title($title) {
        global $PAGE;

        $this->page = null;
        $this->title = $title;
        // set_title calls format_string itself so no probs there
        $PAGE->set_title($this->title);
    }
161206
public function setTitle()
    {
        switch ($this->type) {
            case self::TYPE_ERROR:
                $t = Yii::t('noty', 'Error');
                break;
            case self::TYPE_INFO:
                $t = Yii::t('noty', 'Info');
                break;
            case self::TYPE_WARNING:
                $t = Yii::t('noty', 'Warning');
                break;
            case self::TYPE_SUCCESS:
                $t = Yii::t('noty', 'Success');
                break;
            default:
                $t = '';
        }

        $this->title = $this->showTitle ? $t : '';
    }
459028
public function cmdUpdateCollectionItem()
    {
        $params = $this->getParam();

        if (empty($params[0]) || count($params) < 2) {
            $this->errorAndExit($this->text('Invalid command'));
        }

        if (!is_numeric($params[0])) {
            $this->errorAndExit($this->text('Invalid argument'));
        }

        $this->setSubmitted(null, $params);
        $this->setSubmitted('update', $params[0]);
        $this->validateComponent('collection_item');

        $this->updateCollectionItem($params[0]);
        $this->output();
    }
117061
protected function setTitleEditZone()
    {
        if (isset($this->data_zone['zone_id'])) {
            $title = $this->text('Edit %name', array('%name' => $this->data_zone['title']));
        } else {
            $title = $this->text('Add zone');
        }

        $this->setTitle($title);
    }
18826
def update_title(self, _, info):
        # type: (object, TitleInfo) -> None
        """"""
        with self._lock:
            self._block.meta.set_label(info.title)
194098
public void setTitle(String title)
    {
        AbstractHtmlState tsh = getState();
        tsh.registerAttribute(AbstractHtmlState.ATTR_GENERAL, TITLE, title);
    }
295884
def set_title(self):
        """"""
        try:
            self.title = self.soup.find('title').string
        except AttributeError:
            self.title = None
179481
def set_title(self, title, subtitle=''):
        """"""
        self.title = title
        self.subtitle = subtitle
309702
protected function prepareCollectionItem(array &$collection_item)
    {
        $item = $this->collection_item->getItem(array(
            'collection_item_id' => $collection_item['collection_item_id']));

        $collection_item['title'] = isset($item['title']) ? $item['title'] : '';
    }
1029307
function _set_property(itemsObject, name, value) {
  const nameArray = name.split(".");
  if (nameArray[1]) {
    itemsObject[nameArray[0]][nameArray[1]] = value;
  } else {
    itemsObject[name] = value;
  }
}
1187714
protected void editTitle() {

        m_title.setVisible(false);
        final TextBox box = new TextBox();
        box.setText(m_title.getText());
        box.getElement().setAttribute("size", "45");
        box.addStyleName(I_CmsInputLayoutBundle.INSTANCE.inputCss().labelInput());
        box.addStyleName(I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().titleInput());
        final String originalTitle = m_title.getText();
        // wrap the boolean flag in an array so we can change it from the event handlers
        final boolean[] checked = new boolean[] {false};
        final boolean restoreUnselectable = CmsDomUtil.hasClass(
            I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().unselectable(),
            m_contentPanel.getElement());
        m_contentPanel.removeStyleName(I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().unselectable());
        box.addBlurHandler(new BlurHandler() {

            /**
             * @see com.google.gwt.event.dom.client.BlurHandler#onBlur(com.google.gwt.event.dom.client.BlurEvent)
             */
            public void onBlur(BlurEvent event) {

                if (restoreUnselectable) {
                    setUnselectable();
                }
                if (checked[0]) {
                    return;
                }

                onEditTitleTextBox(box);
                checked[0] = true;
            }
        });

        box.addKeyPressHandler(new KeyPressHandler() {

            /**
             * @see com.google.gwt.event.dom.client.KeyPressHandler#onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent)
             */
            public void onKeyPress(KeyPressEvent event) {

                if (checked[0]) {
                    return;
                }

                int keycode = event.getNativeEvent().getKeyCode();

                if ((keycode == 10) || (keycode == 13)) {
                    onEditTitleTextBox(box);
                    checked[0] = true;
                }
                if (keycode == 27) {
                    box.setText(originalTitle);
                    onEditTitleTextBox(box);
                    checked[0] = true;

                }
            }
        });
        m_titleBox.insert(box, 2);
        box.setFocus(true);
    }
990258
public void setTitle(final String title) {
        if (this.title == null) {
            this.title = new Content();
        }
        this.title.setValue(title);
    }
1232913
function (title, callback) {
        title = title || '';
        callback = callback || function () { };

        var newItem = {
          title: title.trim(),
          completed: false
        };

        storage.save(newItem, callback);
      }
1351355
function updateTitle(dataPoint) {
            let tTitle = title;
            let formattedDate = formatDate(new Date(dataPoint[dateLabel]));

            if (tTitle.length) {
                if (shouldShowDateInTitle) {
                    tTitle = `${tTitle} - ${formattedDate}`;
                }
            } else {
                tTitle = formattedDate;
            }

            tooltipTitle.text(tTitle);
        }
574582
public function editCollectionItem($collection_id, $collection_item_id = null)
    {
        $this->setCollectionCollection($collection_id);
        $this->setCollectionCollectionItem($collection_item_id);
        $this->setTitleEditCollectionItem();
        $this->setBreadcrumbEditCollectionItem();

        $this->setData('collection', $this->data_collection);
        $this->setData('collection_item', $this->data_collection_item);
        $this->setData('handler', $this->getHandlerCollectionItem());
        $this->setData('weight', $this->collection_item->getNextWeight($collection_id));

        $this->submitEditCollectionItem();

        $this->setJsEditCollectionItem();
        $this->outputEditCollectionItem();
    }