Class SkipToContent
java.lang.Object
org.patternfly.component.BaseComponent<elemental2.dom.HTMLDivElement,SkipToContent>
org.patternfly.component.skiptocontent.SkipToContent
- All Implemented Interfaces:
Container<elemental2.dom.HTMLDivElement,,SkipToContent> Finder<elemental2.dom.HTMLDivElement>,HasElement<elemental2.dom.HTMLDivElement,,SkipToContent> HasHTMLElement<elemental2.dom.HTMLDivElement,,SkipToContent> IsElement<elemental2.dom.HTMLDivElement>,TypedBuilder<elemental2.dom.HTMLDivElement,,SkipToContent> Component,WithText<elemental2.dom.HTMLDivElement,SkipToContent>
public class SkipToContent
extends BaseComponent<elemental2.dom.HTMLDivElement,SkipToContent>
implements WithText<elemental2.dom.HTMLDivElement,SkipToContent>
A skip to content component allows screen reader and keyboard users to bypass navigation rather than tabbing through it.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SkipToContentskipToContent(String mainId) Creates a new component with the given main ID and a default text.static SkipToContentskipToContent(String mainId, String text) Creates a new component with the given main ID and a text.text()that()Methods inherited from class org.patternfly.component.BaseComponent
componentType, elementMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.elemento.Container
add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface org.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, classList, classList, css, id, innerHtml, on, on, on, run, textContent, textNode, toggle, toggle, toggle, uniqueId
-
Method Details
-
skipToContent
Creates a new component with the given main ID and a default text. -
skipToContent
Creates a new component with the given main ID and a text. -
text
- Specified by:
textin interfaceWithText<elemental2.dom.HTMLDivElement,SkipToContent>
-
that
- Specified by:
thatin interfaceTypedBuilder<elemental2.dom.HTMLDivElement,SkipToContent>
-
text
- Specified by:
textin interfaceWithText<elemental2.dom.HTMLDivElement,SkipToContent>
-