Responsive design is great, but at the same time something that is not so easy to grasp as it works over different levels. ABMaterial has been using this concept from the very beginning using Materialize CSS and to make it easier, I created a builder for it.
A great start was the implementation done for Bootstrap: Shoelace.io. I liked the idea of ‘drawing’ your grid. However, for ABMaterial, I did want more.
Objectives:
- Needed to generate B4J source code, not html
- I wanted a way to return B4J code back to the builder
- Some extra functionalities to insert cells before/after another
- Save/Load to re-use designs.
- The generated code should include a ‘description’ of the grid.
- A ‘light’ and a ‘dark’ theme for night owls like me
Here is a little demonstration on how to work with it:
It generates code something like this:
'PHONE '╔═══════════════════════════════════════════════════════════════════════════════════╗ '║ 1,1 ║ '╠═══════════════════════════════════════════════════════════════════════════════════╣ '║ 2,1 | 2,2 | 2,3 ║ '║-----------------------------------------------------------------------------------║ '║ 2,4 | 2,5 | 2,6 ║ '║-----------------------------------------------------------------------------------║ '║ 2,7 | 2,8 | 2,9 ║ '║-----------------------------------------------------------------------------------║ '║ 2,10 | 2,11 | 2,12 ║ '╠═══════════════════════════════════════════════════════════════════════════════════╣ '║ 3,1 ║ '╠═══════════════════════════════════════════════════════════════════════════════════╣ '║ 4,1 ║ '╚═══════════════════════════════════════════════════════════════════════════════════╝ 'TABLET '╔═══════════════════════════════════════════════════════════════════════════════════════════════════════════╗ '║ 1,1 ║ '╠═══════════════════════════════════════════════════════════════════════════════════════════════════════════╣ '║ 2,1 | 2,2 | 2,3 | 2,4 ║ '║-----------------------------------------------------------------------------------------------------------║ '║ 2,5 | 2,6 | 2,7 | 2,8 ║ '║-----------------------------------------------------------------------------------------------------------║ '║ 2,9 | 2,10 | 2,11 | 2,12 ║ '╠═══════════════════════════════════════════════════════════════════════════════════════════════════════════╣ '║ 3,1 ║ '╠═══════════════════════════════════════════════════════════════════════════════════════════════════════════╣ '║ 4,1 ║ '╚═══════════════════════════════════════════════════════════════════════════════════════════════════════════╝ 'DESKTOP '╔═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ '║ 1,1 ║ '╠═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╣ '║ 2,1 | 2,2 | 2,3 | 2,4 | 2,5 | 2,6 | 2,7 | 2,8 | 2,9 | 2,10 | 2,11 | 2,12 ║ '╠═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╣ '║ 3,1 ║ '╠═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╣ '║ 4,1 ║ '╚═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ cont1.AddRows(1, True,"").AddCells12(1,"") cont1.AddRows(1, True,"").AddCellsOS(12,0,0,0,4,3,1,"") cont1.AddRows(2, True,"").AddCells12(1,"") cont1.BuildGrid ' IMPORTANT!
This description of the grid is very handy when you start adding your components. As you can see in the video, copying the AddRows lines and parsing them back into the builder makes it easy to make changes.
The functionalities are all in the grid itself so you can work fast:
ABMGridBuilder is completely written in B4J, so it runs on all desktop platforms (Windows, OSX, Linux).
Tools like this make creating WebApps with ABMaterial and B4J even easier. It is astonishing how versatile the B4X programming suite from Anywhere Software really is. It is unique, fast, super stable and full of features nowhere else to be found. I’m so glad I discovered this great tool!
Donators will receive their mail with the download link shortly.
See ya!
Alwaysbusy
Click here to and support ABMaterial