Closed halfahad closed 9 years ago
How are you trying to configure your widget?
The hint works fine within hint block - as can be seen in the demo.
NOTE: You must have the latest dev release from yii...
I was on the latest stable release. Furthermore you may check your demo here: link to HTML5 Demo Page!
echo $form->field($model, 'image')->
input('color', ['style' => 'width: 50px; cursor: pointer;'])->
hint('Color picker input. Supported on Firefox, Chrome, and Opera.');
is outputting the following html
<div class="form-group field-demo-image">
<input type="color" id="demo-image" class="form-control" name="Demo[image]">
<div class="help-block"></div>
<div class="hint-block">Color picker input (default). Supported on Firefox, Chrome, and Opera. </div>
</div>
This is only for the latest stable version, I have not delved into the dev release.
Thanks for your hard work.
I just realized its printing to the right div. sorry about that.
I was confused about the difference between
<label class="control-label" for="product-name">Name</label>
<input type="text" id="product-name" class="form-control" name="Product[name]" value="Name" maxlength="120">
<div class="hint-block">This is the hint</div>
<div class="help-block"></div>
<label class="control-label" for="product-name">Name</label>
<input type="text" id="product-name" class="form-control" name="Product[name]" value="Hikvision 720TVL Dome Camera" maxlength="120">
<div class="help-block"></div>
<div class="hint-block">This is the hint</div>
the hint and help blocks are switched. Maybe it was intended on your design.
thanks again!
ActiveField->hint() is printing out to the help-block div and not the hint-block div, as it should.