New components for images
This commit is contained in:
parent
d939b0a2ba
commit
6fb1d6c681
1 changed files with 10 additions and 0 deletions
|
@ -69,4 +69,14 @@ static
|
|||
toReturn.AddClass("lyb-info");
|
||||
return toReturn;
|
||||
}
|
||||
|
||||
public static HTML LybImage(StringView path, int32 width, int32 height, StringView title)
|
||||
{
|
||||
var toReturn = new HTML(
|
||||
Img(path, width, height, title)..AddClass("lyb-img")
|
||||
,title);
|
||||
toReturn.Name = .("div");
|
||||
toReturn.AddClass("lyb-img-container");
|
||||
return toReturn;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue