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 BaseComponent
componentType, element, registerComponentMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Attachable
detachMethods inherited from interface ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface ElementConsumerMethods
apply, runMethods inherited from interface ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface ElementEventMethods
on, on, onMethods inherited from interface ElementIdMethods
id, uniqueIdMethods inherited from interface ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface HTMLElementAttributeMethods
titleMethods inherited from interface HTMLElementDataMethods
data, dataMethods inherited from interface 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
-