Skip to contents

ContentBlock

ContentBlock

Methods


Method new()

Returns a ContentBlock object.

Usage

Details

Returns a ContentBlock object with no content and the default style.

Returns

ContentBlock

Examples

block <- teal.reporter:::ContentBlock$new()


Method set_content()

Sets content of this ContentBlock.

Usage

ContentBlock$set_content(content)

Arguments

content

(character(0) or character(1)) a string literal or a file path assigned to this ContentBlock

Returns

invisibly self

Examples

block <- teal.reporter:::ContentBlock$new()
block$set_content("Base64 encoded picture")


Method get_content()

Returns the absolute path to content of this ContentBlock

Usage

ContentBlock$get_content()

Returns

character content of this ContentBlock

Examples

block <- teal.reporter:::ContentBlock$new()
block$get_content()


Method clone()

The objects of this class are cloneable with this method.

Usage

ContentBlock$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples


## ------------------------------------------------
## Method `ContentBlock$new`
## ------------------------------------------------

block <- teal.reporter:::ContentBlock$new()


## ------------------------------------------------
## Method `ContentBlock$set_content`
## ------------------------------------------------

block <- teal.reporter:::ContentBlock$new()
block$set_content("Base64 encoded picture")


## ------------------------------------------------
## Method `ContentBlock$get_content`
## ------------------------------------------------

block <- teal.reporter:::ContentBlock$new()
block$get_content()
#> character(0)