Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 535 Bytes

image.md

File metadata and controls

26 lines (18 loc) · 535 Bytes

Image Field

Represents <input> element of type "image" that is used to create graphical submit buttons. Documentation:

Usage Example

Widget:

use Yiisoft\Form\Field\Image;

echo Image::widget()
    ->src('btn.png')
    ->alt('Go');

Result will be:

<div>
    <input type="image" src="btn.png" alt="Go">
</div>