Class CodeBlock
java.lang.Object
org.patternfly.component.BaseComponent<HTMLDivElement,CodeBlock>
org.patternfly.component.codeblock.CodeBlock
- All Implemented Interfaces:
Attachable,ElementAttributeMethods<HTMLDivElement,,CodeBlock> ElementClassListMethods<HTMLDivElement,,CodeBlock> ElementConsumerMethods<HTMLDivElement,,CodeBlock> ElementContainerMethods<HTMLDivElement,,CodeBlock> ElementEventMethods<HTMLDivElement,,CodeBlock> ElementIdMethods<HTMLDivElement,,CodeBlock> ElementQueryMethods<HTMLDivElement>,HTMLElementAttributeMethods<HTMLDivElement,,CodeBlock> HTMLElementDataMethods<HTMLDivElement,,CodeBlock> HTMLElementStyleMethods<HTMLDivElement,,CodeBlock> HTMLElementVisibilityMethods<HTMLDivElement,,CodeBlock> IsElement<HTMLDivElement>,TypedBuilder<HTMLDivElement,,CodeBlock> Component
A code block is a component that contains two or more lines of read-only code. The code in a code block can be copied to the
clipboard.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionadd(CodeBlockHeader header) addAction(CodeBlockAction action) addHeader(CodeBlockHeader header) voidattach(MutationRecord mutationRecord) code()static CodeBlockstatic CodeBlockthat()truncate()Same as truncate(3)truncate(int truncate) 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.Attachable
detachMethods inherited from interface org.jboss.elemento.ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface org.jboss.elemento.ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface org.jboss.elemento.ElementConsumerMethods
apply, runMethods inherited from interface org.jboss.elemento.ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface org.jboss.elemento.ElementEventMethods
on, on, onMethods inherited from interface org.jboss.elemento.ElementIdMethods
id, uniqueIdMethods inherited from interface org.jboss.elemento.ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface org.jboss.elemento.HTMLElementAttributeMethods
titleMethods inherited from interface org.jboss.elemento.HTMLElementDataMethods
dataMethods inherited from interface org.jboss.elemento.HTMLElementStyleMethods
style, style, style, style, style, styleMethods inherited from interface org.jboss.elemento.HTMLElementVisibilityMethods
hidden
-
Field Details
-
DEFAULT_TRUNCATE
public static final int DEFAULT_TRUNCATE- See Also:
-
-
Method Details
-
codeBlock
-
codeBlock
-
attach
- Specified by:
attachin interfaceAttachable
-
addHeader
-
add
-
addAction
-
truncate
Same as truncate(3) -
truncate
-
code
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLDivElement,CodeBlock>
-
code
-