Unlayer Documentation

Unlayer Documentation

Welcome to Unlayer Documentation. It takes less than 5 minutes to get our editor up and running on your project.

These guides will take you through the process and get you up and running.

Get Started    

Custom Columns

We have a few pre-built blocks available with different column sizes. You can add your own blocks with custom column sizes. Each block can have up to 12 columns.

The registerColumns function adds a custom column block. It takes an array as parameter. The items in the array are number of columns and their sum should be equal to 12.

Examples

4 Columns

In this example, we will add 4 columns. The first and last will be smaller, and middle ones will be bigger.

unlayer.registerColumns([2, 4, 4, 2]);

3 Columns

In this example, we will add 3 columns. The first 2 will be smaller and last one will be bigger.

unlayer.registerColumns([3, 3, 6]);

Updated 3 months ago


Custom Columns


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.