module Opal::Layout

Overview

Layout combinators for positioning multi-line string blocks horizontally and vertically.

Defined in:

opal/style/layout.cr

Class Method Summary

Class Method Detail

def self.join_horizontal(align : Symbol = :top, blocks : Array(String) = [] of String, spacing : Int32 = 0) : String #

Joins multi-line string blocks horizontally side-by-side. Align can be :top, :center, or :bottom.


[View source]
def self.join_horizontal(align : Symbol = :top, *blocks : String, spacing : Int32 = 0) : String #

[View source]
def self.join_vertical(align : Symbol = :left, blocks : Array(String) = [] of String, spacing : Int32 = 0) : String #

Stacks multi-line string blocks vertically. Align can be :left, :center, or :right.


[View source]
def self.join_vertical(align : Symbol = :left, *blocks : String, spacing : Int32 = 0) : String #

[View source]