Which placeholders are available in the Scroll Exporters
The following table gives an overview on available placeholders in Scroll Exporters and what they can be used for:
Function | Description | Example |
---|---|---|
$renderstart | Is true if the opening HTML tag should be created, and false when the respective closing tag should be created | |
$idAttribute | Outputs an id="..." attribute only if the element has an ID | |
$classAttribute | Prints out a class="..." attribute only if there is actually a class, that means it prevents empty class attributes The actual classes depend on the table that's being exported. Adding ".with($element.style)" ensures that custom "table styles" as set by the scroll-tablelayout macro are also propagated as a CSS class to the resulting <table> HTML element. | |
$cssClasses | Can be used to compare classes | #if ($cssClasses.contains("some-class")) ... #end |