Class CodeBlock
java.lang.Object
org.patternfly.component.BaseComponent<HTMLDivElement,CodeBlock>
org.patternfly.component.codeblock.CodeBlock
- All Implemented Interfaces:
Attachable,Container<HTMLDivElement,,CodeBlock> Finder<HTMLDivElement>,HasElement<HTMLDivElement,,CodeBlock> HasHTMLElement<HTMLDivElement,,CodeBlock> IsElement<HTMLDivElement>,TypedBuilder<HTMLDivElement,,CodeBlock> Component
A code block is a component that contains 2 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.Container
add, add, add, addAll, addAll, addAll, addAll, addAll, addAll
-
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
-