1. Christoffer Niska
  2. yii-bootstrap
  3. Issues
Issue #278 new

Placeholder value for text-form elements

Igor A
created an issue

In the text form elements the TbActiveForm widget does not accept placeholder value via htmpOptions array. But yii form widget is support this. My proposition is to add one string to all text filed element. For example :

// File TbInputInline.php

protected function textField() { if(!isset($this->htmlOptions['placeholder'])) /* Added string ! / $this->htmlOptions['placeholder'] = $this->model->getAttributeLabel($this->attribute);

echo $this->getPrepend(); echo $this->form->textField($this->model, $this->attribute, $this->htmlOptions); echo $this->getAppend(); }

It must be made for all methods, which operates with placeholder value

Comments (0)

  1. Log in to comment