public class ImgAttributes extends Attribute
| Constructor and Description |
|---|
ImgAttributes(String name,
String value)
Use this for creating attribute, bur first
chack all others static constructors available on this class
|
| Modifier and Type | Method and Description |
|---|---|
static ImgAttributes |
alt(String altText)
This attribute defines the alternative text describing the image.
|
static ImgAttributes |
height(Px height)
The intrinsic height of the image in pixels.
|
static ImgAttributes |
src(String src)
The image URL.
|
static ImgAttributes |
width(Px width)
The intrinsic width of the image in pixels.
|
public static ImgAttributes src(String src)
src - valuepublic static ImgAttributes alt(String altText)
altText - valuepublic static ImgAttributes height(Px height)
height - valuepublic static ImgAttributes width(Px width)
width - valueCopyright © 2016. All rights reserved.