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
-
Method Summary
Modifier and TypeMethodDescriptionadd
(CodeBlockHeader header) addAction
(CodeBlockAction action) addHeader
(CodeBlockHeader header) void
attach
(MutationRecord mutationRecord) code()
static CodeBlock
static CodeBlock
that()
truncate()
Same as truncate(3)truncate
(int truncate) 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.Attachable
detach
Methods 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:
attach
in interfaceAttachable
-
addHeader
-
add
-
addAction
-
truncate
Same as truncate(3) -
truncate
-
code
-
that
- Specified by:
that
in interfaceTypedBuilder<HTMLDivElement,
CodeBlock>
-
code
-