當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Html::activeTextarea方法代碼示例

本文整理匯總了PHP中yii\bootstrap\Html::activeTextarea方法的典型用法代碼示例。如果您正苦於以下問題:PHP Html::activeTextarea方法的具體用法?PHP Html::activeTextarea怎麽用?PHP Html::activeTextarea使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在yii\bootstrap\Html的用法示例。


在下文中一共展示了Html::activeTextarea方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: run

 public function run()
 {
     if ($this->hasModel()) {
         echo Html::activeTextarea($this->model, $this->attribute, $this->options);
     } else {
         echo Html::textarea($this->name, $this->value, $this->options);
     }
     $this->registerPlugin();
 }
開發者ID:nagser,項目名稱:pages,代碼行數:9,代碼來源:CKEditorWidget.php

示例2: run

 public function run()
 {
     if ($this->hasModel()) {
         if (!ArrayHelper::getValue($this->options, 'id')) {
             $this->options['id'] = Html::getInputId($this->model, $this->attribute);
         }
         echo Html::activeTextarea($this->model, $this->attribute, $this->options);
     } else {
         if (!ArrayHelper::getValue($this->options, 'id')) {
             $this->options['id'] = Html::getAttributeName($this->name . rand(1, 9999));
         }
         echo Html::textarea($this->name, $this->value, $this->options);
     }
     $this->registerAssets();
 }
開發者ID:xvs32x,項目名稱:tinymce-responsivefilemanager,代碼行數:15,代碼來源:Tinymce.php

示例3: run

 public function run()
 {
     return Html::activeTextarea($this->model, $this->attribute, $this->options);
 }
開發者ID:mg-code,項目名稱:yii2-bootstrap3-wysiwyg,代碼行數:4,代碼來源:Bootstrap3Wysiwyg.php

示例4: run

 public function run()
 {
     parent::run();
     return Html::activeTextarea($this->model, $this->attribute, $this->htmlOptions);
 }
開發者ID:tqsq2005,項目名稱:dotplant2,代碼行數:5,代碼來源:TextareaWidget.php

示例5: run

    /**
     * Executes the widget.
     * @return string the result of widget execution to be outputted.
     * @throws InvalidParamException
     */
    public function run()
    {
        $this->view->registerJs('$(function() {
			tinyMCE.init({' . substr(Json::encode($this->clientOptions), 1, -1) . ',"file_browser_callback": RoxyFileBrowser});
		});', View::POS_HEAD);
        $this->view->registerJs('function RoxyFileBrowser(field_name, url, type, win) {
			var roxyMce = "' . $this->action . '";
			if(roxyMce.indexOf("?") < 0) {
				roxyMce += "?type=" + type;
			}
			else {
				roxyMce += "&type=" + type;
			}
			roxyMce += "&input=" + field_name + "&value=" + win.document.getElementById(field_name).value;
			if(tinyMCE.activeEditor.settings.language) {
				roxyMce += "&langCode=" + tinyMCE.activeEditor.settings.language;
			}
			tinyMCE.activeEditor.windowManager.open({
				file          : roxyMce,
				title         : "' . (array_key_exists('title', $this->clientOptions) ? $this->clientOptions['title'] : 'RoxyMce') . '",
				width         : 850,
				height        : 480,
				resizable     : "yes",
				plugins       : "media",
				inline        : "yes",
				close_previous: "no"
			}, {
				window: win,
				input : field_name
			});
			return false;
		}', View::POS_HEAD);
        if ($this->model !== null) {
            return Html::activeTextarea($this->model, $this->attribute, $this->options);
        } else {
            return Html::textarea($this->name, $this->value, $this->options);
        }
    }
開發者ID:navatech,項目名稱:yii2-roxymce,代碼行數:43,代碼來源:RoxyMceWidget.php


注:本文中的yii\bootstrap\Html::activeTextarea方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。