public static interface HamletSpec._Anchor
Modifier and Type | Method and Description |
---|---|
HamletSpec.A |
a()
Add a A (anchor) element.
|
HamletSpec.A |
a(String selector)
Add a A (anchor) element.
|
HamletSpec._Anchor |
a(String href,
String anchorText)
Shortcut for
a().$href(href)._(anchorText)._(); |
HamletSpec._Anchor |
a(String selector,
String href,
String anchorText)
Shortcut for
a(selector).$href(href)._(anchorText)._(); |
HamletSpec.A a()
HamletSpec.A a(String selector)
selector
- the css selector in the form of (#id)*(.class)*HamletSpec._Anchor a(String href, String anchorText)
a().$href(href)._(anchorText)._();
href
- the URIanchorText
- for the URIHamletSpec._Anchor a(String selector, String href, String anchorText)
a(selector).$href(href)._(anchorText)._();
selector
- in the form of (#id)?(.class)*href
- the URIanchorText
- for the URICopyright © 2008–2022 Apache Software Foundation. All rights reserved.