io.docops.asciidoc.buttons.ButtonCardRendererNext.kt Maven / Gradle / Ivy
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