Version: 0.30
Generate Html with B4X code.
Example 1:
Output:
Hello, World!
Example 2:
Output:
This is a red text in a paragraph
Example using HTMX:
www.b4x.com
GitHub: https://github.com/pyhoon/MiniHtml-B4X
Generate Html with B4X code.
Example 1:
B4X:
H1.Text("Hello, World!")
Output:
Hello, World!
HTML:
<h1>Hello, World!</h1>
Example 2:
B4X:
Paragraph.up(main1) _
.Text("This is a ") _
.add(Span.Text("red text").addClass("text-danger")) _
.Text(" in a ") _
.add(Bold.text("paragraph"))
Output:
This is a red text in a paragraph
HTML:
<p>This is a
<span class="text-danger">red text</span> in a
<b>paragraph</b>
</p>
Example using HTMX:
HTMX+Bootstrap5+MiniHTML+WebApiUtils+Server
This example uses B4X, specifically MiniHTML library cross over HTMX to generate interactive HTML based on Modal Dialogs in Bootstrap example on HTMX website to demonstrate mix usage of HTMX and Bootstrap 5 javascript served by B4J server through helper functions from WebApiUtils v3 library...
GitHub: https://github.com/pyhoon/MiniHtml-B4X
Attachments
Last edited: