{
"test": 44
}
Component Name
Code
Builder Function Name
create_code_manager
Description
renders preformatted code content with a copy button
Use like example
Config
Property | Type | Default | Description |
---|---|---|---|
content | any | the code content to display, can be string or object | |
language | string | optional label indicating the code language |
Methods
Method | Description | Parameters | Returns |
---|---|---|---|
init | initializes the copy button manager | config: object | void |
Returned Properties
Property | Type | Description |
---|---|---|
id | string | unique id for this code block instance |
copy_button_manager | object | button manager configured to copy the code content to clipboard |
language | string | the language label for this code block |
content | any | the displayed code content |