FragmentableElementsOptions

data class FragmentableElementsOptions(val allowByDefault: Boolean, val blacklistSelectors: List<String> = emptyList(), val blacklistStyles: List<FragmentableElementsOptionStyleRule> = emptyList(), val whitelistSelectors: List<String> = emptyList())

Constructors

Link copied to clipboard
fun FragmentableElementsOptions(allowByDefault: Boolean, blacklistSelectors: List<String> = emptyList(), blacklistStyles: List<FragmentableElementsOptionStyleRule> = emptyList(), whitelistSelectors: List<String> = emptyList())

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard

If set to true, fragmentation is allowed if element does not match any selector in the blacklist. If set to false, fragmentation is only allowed it element matches any selector in the whitelist.

Link copied to clipboard

A list of selectors which cannot be fragmented. This applies both to forced and unforced breaks.

Link copied to clipboard

List of rules defining styles which are not allowed to fragment

Link copied to clipboard

A list of selectors which are allowed to be fragmented. This applies both to forced and unforced breaks.