Section

Attribute list for sections

Key-Value Pairs

width

determines the width of the section, percentages being a % of the remaining space in the parent frame and numbers being the pixel size

section [width = 50%] {
    // code
}

height

determines the height of the section, using the same rules as width

section [height = 100] {
    // code
}

size

similar to width and height, but it uses the frame axes.

frame [Horizontal] {
    section [size=50%] {
        // uses 50% of the frame horizontally
    }
}

overflow

This describes the behaviour of an element when it is partially or fully outside the section.

name
behaviour

visible

simply lets the text go over the section boundries

clip

clips off the text that is over the section boundries

scroll

turns the section into a scrollview on both axes at all times

auto

turns into a scroll view on the axes that are overflowing

Last updated