Method | Description | |
---|---|---|
Alt ( this picture, string alt ) : IPictureElement |
Sets the alt attribute on the img element.
|
|
Attr ( this picture, string key, string value ) : IPictureElement |
Adds the following attribute and value to picture element.
|
|
Attrs ( this picture, string>.Dictionary |
Adds the following attributes and values to picture element.
|
|
Html ( this picture ) : IHtmlString |
Convert to HtmlString
|
|
Picture ( this helper ) : IPictureElement |
Creates an empty picture element.
|
|
RenderPicture ( this helper, IPictureElement picture ) : IHtmlString |
Returns the html of picture element with sources and attributes.
|
|
Source ( this picture, string media ) : IPictureElement |
Adds new source with specified media and srcsets.
|
|
Src ( this picture, string src ) : IPictureElement |
You should leave this empty
|
|
Srcset ( this picture ) : IPictureElement |
Add multiple sources in the srcset attribute on img element
|
Method | Description | |
---|---|---|
RenderHere ( this picture ) : void |
public static Alt ( this picture, string alt ) : IPictureElement | ||
picture | this | |
alt | string | |
return | IPictureElement |
public static Attr ( this picture, string key, string value ) : IPictureElement | ||
picture | this | |
key | string | |
value | string | |
return | IPictureElement |
public static Attrs ( this picture, string>.Dictionary |
||
picture | this | |
attrs | string>.Dictionary | |
return | IPictureElement |
public static Html ( this picture ) : IHtmlString | ||
picture | this | |
return | IHtmlString |
public static Picture ( this helper ) : IPictureElement | ||
helper | this | |
return | IPictureElement |
public static RenderPicture ( this helper, IPictureElement picture ) : IHtmlString | ||
helper | this | |
picture | IPictureElement | |
return | IHtmlString |
public static Source ( this picture, string media ) : IPictureElement | ||
picture | this | |
media | string | |
return | IPictureElement |
public static Src ( this picture, string src ) : IPictureElement | ||
picture | this | |
src | string | |
return | IPictureElement |
public static Srcset ( this picture ) : IPictureElement | ||
picture | this | |
return | IPictureElement |