Class SkipToContent
java.lang.Object
org.patternfly.component.BaseComponent<HTMLDivElement,SkipToContent>
org.patternfly.component.skiptocontent.SkipToContent
- All Implemented Interfaces:
Container<HTMLDivElement,
,SkipToContent> Finder<HTMLDivElement>
,HasElement<HTMLDivElement,
,SkipToContent> HasHTMLElement<HTMLDivElement,
,SkipToContent> IsElement<HTMLDivElement>
,TypedBuilder<HTMLDivElement,
,SkipToContent> Component
,WithText<HTMLDivElement,
SkipToContent>
public class SkipToContent
extends BaseComponent<HTMLDivElement,SkipToContent>
implements WithText<HTMLDivElement,SkipToContent>
A skip to content component allows screen reader and keyboard users to bypass navigation rather than tabbing through it.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic SkipToContent
skipToContent
(String mainId) Creates a new component with the given main ID and a default text.static SkipToContent
skipToContent
(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, element
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.elemento.Container
add, add, add, addAll, addAll, addAll, addAll, addAll, addAll
Methods 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:
text
in interfaceWithText<HTMLDivElement,
SkipToContent>
-
that
- Specified by:
that
in interfaceTypedBuilder<HTMLDivElement,
SkipToContent>
-
text
- Specified by:
text
in interfaceWithText<HTMLDivElement,
SkipToContent>
-