Tutorials

How to align content

When the received content is smaller than the container element, it can be aligned within the container. This is especially useful when using fill while accepting multiple formats.

Setup
adk.config()
    .addContainer('my-container', adk.container.config()
        .provider('adk.hello')
        .formats([300, 300])
        .fill()
        .alignX('right')
        .alignY('center'))
    .apply()
    .init(publisherId)
Result