All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.docops.asciidoc.buttons.ButtonCardRendererNext.kt Maven / Gradle / Ivy

There is a newer version: 2023.20
Show newest version
package io.docops.asciidoc.buttons

import io.docops.asciidoc.buttons.models.Button
import io.docops.asciidoc.buttons.theme.Theme
import io.docops.asciidoc.utils.escapeXml

class ButtonCardRendererNext : AbstractButtonRenderer() {
    override fun drawButtons(buttonList: MutableList>, theme: Theme): String {
        val sb = StringBuilder("")
        buttonList.forEachIndexed { index, buttons ->
            sb.append(drawButton(index, buttons, theme))
        }
        sb.append("")
        return sb.toString()
    }

    private fun drawButton(index: Int, buttons: MutableList




© 2015 - 2024 Weber Informatics LLC | Privacy Policy