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


PHP FormBuilder::textarea方法代碼示例

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


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

示例1: textarea

 public function textarea($name, $value = null, $options = array())
 {
     if (strpos(@$options['class'], 'form-control') === false) {
         @($options['class'] .= ' form-control');
     }
     return parent::textarea($name, $value, $options);
 }
開發者ID:rtconner,項目名稱:laravel-plusplus,代碼行數:7,代碼來源:BootstrapFormBuilder.php

示例2: textarea

 /**
  * Create a Textarea field.
  *
  * 
  * @param  string  $name
  * @param  string  $value
  * @param  array   $options
  * @param  string  $label
  * @return string
  */
 public function textarea($name, $value = null, $options = array(), $label = '')
 {
     if (!self::$is_bootstrap || in_array($name, self::$excluded)) {
         return parent::input($type, $name, $value, $options);
     }
     $label_text = $label == '' ? $this->transformKey($name) : $label;
     $options = $this->appendClassToOptions('form-control', $options);
     // Call the parent input method so that Laravel can handle
     // the rest of the input set up.
     return $this->openGroup($name, $label_text) . parent::textarea($name, $value, $options) . $this->closeGroup($name);
 }
開發者ID:shyam-achuthan,項目名稱:laravel5bootstrap3form,代碼行數:21,代碼來源:FormBuilder.php

示例3: textarea

 /**
  * Create a textarea input.
  *
  * @param  string  $name
  * @param  string  $value
  * @param  array   $options
  *
  * @return string
  */
 public function textarea($name, $value = null, $options = [])
 {
     $this->addErrorClass($name, $options);
     $tags['input'] = parent::textarea($name, $value, $options);
     $tags['error'] = $this->getErrorTag($name);
     return $this->buildTags($tags);
 }
開發者ID:stolz,項目名稱:laravel-form-builder,代碼行數:16,代碼來源:Foundation.php

示例4: textarea

 /**
  * {@inheritdoc}
  */
 public function textarea($name, $value = null, $options = [])
 {
     $options = array_merge($options, $this->parsley->getFieldRules($name));
     return parent::textarea($name, $value, $options);
 }
開發者ID:idma,項目名稱:laravel-parsley,代碼行數:8,代碼來源:FormBuilder.php

示例5: textarea

 /**
  * {@inheritdoc}
  * @param string      $name       The name of the text area
  * @param string|null $value      The default value
  * @param array       $attributes The attributes of the text area
  * @return string
  */
 public function textarea($name, $value = null, $attributes = array())
 {
     $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL;
     return parent::textarea($name, $value, $attributes);
 }
開發者ID:olax,項目名稱:epetitions,代碼行數:12,代碼來源:Form.php

示例6: textarea

 /**
  * Create a textarea input field.
  *
  * @param  string $name
  * @param  string $value
  * @param  array  $options
  * @return string
  */
 public function textarea($name, $value = null, $options = array())
 {
     $options = $this->addErrorClass($name, $options);
     $options = $this->checkRequired($name, $options);
     return parent::textarea($name, $value, $options);
 }
開發者ID:artisaninweb,項目名稱:laravel-formvalidation-helper,代碼行數:14,代碼來源:FormBuilder.php

示例7: textarea

 /**
  * Generate a textarea field
  *
  * @param        $name
  * @param string $value
  * @param array  $options
  *
  * @return string
  */
 public function textarea($name, $value = '', $options = [])
 {
     return $this->formBuilder->textarea($name, $value, $options);
 }
開發者ID:kamaroly,項目名稱:shift,代碼行數:13,代碼來源:FieldBuilder.php

示例8: textarea

 /**
  * Create a textarea input field.
  *
  * @param  string  $name
  * @param  string  $value
  * @param  array   $options
  * @return string
  */
 public function textarea($name, $value = null, $options = array())
 {
     return parent::textarea($name, $value, $this->addClass($options, static::TEXT_INPUT_CLASS));
 }
開發者ID:wingsline,項目名稱:inuitcss,代碼行數:12,代碼來源:FormBuilder.php

示例9: plainTextarea

 /**
  * Create a plain textarea input field.
  *
  * @param  string $name
  * @param  string $value
  * @param  array  $options
  *
  * @return string
  */
 public function plainTextarea($name, $value = null, $options = [])
 {
     return parent::textarea($name, $value, $options);
 }
開發者ID:nterms,項目名稱:laravel-bootstrap-forms,代碼行數:13,代碼來源:FormBuilder.php

示例10: textarea

 /**
  * Create a textarea input field.
  *
  * @param  string  $name
  * @param  string  $value
  * @param  array   $options
  * @return string
  */
 public function textarea($name, $value = null, $options = array())
 {
     $this->appendReadOnly($options);
     return parent::textarea($name, $value, $options);
 }
開發者ID:leitom,項目名稱:role,代碼行數:13,代碼來源:FormBuilder.php

示例11: textarea

 /**
  * Create a textarea input field.
  *
  * @param  string  $name
  * @param  string  $value
  * @param  array   $options
  * @return \Illuminate\Support\HtmlString
  */
 public function textarea($name, $value = null, $options = [])
 {
     return new HtmlString(parent::textarea($name, $value, $options));
 }
開發者ID:minors,項目名稱:html,代碼行數:12,代碼來源:FormBuilder.php

示例12: textarea

 /**
  * @see Illuminate\Html\FormBuilder
  */
 public function textarea($name, $value = null, $options = [])
 {
     $options = $this->laravelToJquery($name) + $options;
     return parent::textarea($name, $value, $options);
 }
開發者ID:bllim,項目名稱:laravel-to-jquery-validation,代碼行數:8,代碼來源:FormBuilder.php

示例13: textarea

 /**
  * @see Illuminate\Html\FormBuilder
  */
 public function textarea($name, $value = null, $options = [])
 {
     $options = $this->converter->convert(Helper::getFormAttribute($name)) + $options;
     return parent::textarea($name, $value, $options);
 }
開發者ID:jitheshgopan,項目名稱:laravalid,代碼行數:8,代碼來源:FormBuilder.php

示例14: textarea

 /**
  * Create a HTML textarea input element.
  *
  * @param  string  $name
  * @param  string  $label
  * @param  null    $value
  * @param  array   $attributes
  * @return string
  */
 public function textarea($name, $label = '', $value = null, $attributes = array())
 {
     $value = $this->calculateValue($name, $value);
     $attributes = $this->setAttributes($name, $attributes);
     if (!isset($attributes['rows'])) {
         $attributes['rows'] = 4;
     }
     $field = parent::textarea($name, $value, $attributes);
     return $this->buildWrapper($field, $name, $label);
 }
開發者ID:jarnstedt,項目名稱:former,代碼行數:19,代碼來源:Former.php

示例15: textareaField

 /**
  * @param Field $field
  * @return string
  */
 public function textareaField(Field $field)
 {
     return $this->builder->textarea($field->name, $field->value, $field->getAttributes());
 }
開發者ID:iyoworks,項目名稱:form-builder,代碼行數:8,代碼來源:LaravelFormRenderer.php


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