Fix the sample home page

This commit is contained in:
Frank A. Krueger 2018-02-02 23:00:24 -08:00
parent bd802c7d1b
commit eb5851c151
No known key found for this signature in database
GPG Key ID: 0471C67474FFE664
2 changed files with 14 additions and 1 deletions

View File

@ -18,5 +18,18 @@ namespace Ooui
: base ("a") : base ("a")
{ {
} }
public Anchor (string href)
: this ()
{
HRef = href;
}
public Anchor (string href, string text)
: this ()
{
HRef = href;
Text = text;
}
} }
} }

View File

@ -41,7 +41,7 @@
<hr /> <hr />
<footer> <footer>
<p>&copy; 2017 - @DateTime.UtcNow.Year Frank A. Krueger</p> <p>&copy; 2017 - @DateTime.UtcNow.Year Frank A. Krueger</p>
@{ var e = new Ooui.Sa.Button("Hello World"); } @{ var e = new Ooui.Anchor ("https://github.com/praeclarum/Ooui", "π"); }
<ooui element="e" /> <ooui element="e" />
<!--Html.Ooui (e)--> <!--Html.Ooui (e)-->
</footer> </footer>