TailwindCSS WebApps Using B4X
TailwindCSS WebApps Using B4X
using B4X
SithasoDaisy v1.16
Table of contents
Introduction ............................................................................................................... 7
Getting Started .......................................................................................................... 8
New to B4x? ............................................................................................................ 15
Project Templates .................................................................................................... 15
SithasoFree.......................................................................................................... 16
SithasoDrawer ..................................................................................................... 18
SithasoCanvas...................................................................................................... 20
SithasoMultiUser .................................................................................................. 22
Creating WebApps .................................................................................................... 26
Creating a Project ................................................................................................ 26
Creating a Page ................................................................................................... 30
Creating a Grid..................................................................................................... 35
Abstract Designer ................................................................................................. 36
Adding Components ............................................................................................. 42
Handling Events ................................................................................................... 42
Abstract Designer DeepDive.................................................................................. 47
Repetitive Layouts ................................................................................................ 50
Components............................................................................................................. 53
Alerts .................................................................................................................. 54
Abstract Designer............................................................................................. 54
Animations .......................................................................................................... 56
Art Board ............................................................................................................. 56
Abstract Designer............................................................................................. 57
Avatars ................................................................................................................ 58
Abstract Designer............................................................................................. 59
Badges ................................................................................................................ 61
Abstract Designer............................................................................................. 61
Bread Crumbs ...................................................................................................... 64
Abstract Designer............................................................................................. 64
Buttons ............................................................................................................... 64
Abstract Designer............................................................................................. 67
Buttons - Gradients .............................................................................................. 68
Button Groups ..................................................................................................... 68
Abstract Designer............................................................................................. 69
Bottom Nav ......................................................................................................... 71
Abstract Designer............................................................................................. 71
Cards .................................................................................................................. 71
Abstract Designer............................................................................................. 75
Carousel .............................................................................................................. 80
Abstract Designer............................................................................................. 81
Chat .................................................................................................................... 81
Abstract Designer............................................................................................. 82
CheckBox ............................................................................................................ 83
2 / 331
TailwindCSS WebApps using B4X
Abstract Designer............................................................................................. 83
Code ................................................................................................................... 84
Abstract Designer............................................................................................. 84
Collapse............................................................................................................... 85
Abstract Designer............................................................................................. 86
Divider ................................................................................................................ 87
Abstract Designer............................................................................................. 88
Drawer ................................................................................................................ 90
Drop Down .......................................................................................................... 94
Abstract Designer............................................................................................. 95
Existing Blocks ..................................................................................................... 96
File Input ............................................................................................................. 97
FileInputProgress ............................................................................................. 98
FileInputCamera .............................................................................................. 98
Abstract Designer............................................................................................. 99
Footer ................................................................................................................100
Abstract Designer............................................................................................101
Gradients ............................................................................................................102
Hero ...................................................................................................................103
Abstract Designer............................................................................................105
Indicators ...........................................................................................................108
Abstract Designer............................................................................................109
Kbd ....................................................................................................................111
Abstract Designer............................................................................................112
Links ..................................................................................................................113
Abstract Designer............................................................................................114
Lists ...................................................................................................................115
Abstract Designer............................................................................................115
ListView ..............................................................................................................116
Abstract Designer............................................................................................116
Mask ..................................................................................................................116
Abstract Designer............................................................................................117
Menus ................................................................................................................120
Abstract Designer............................................................................................122
Modal .................................................................................................................122
Abstract Designer............................................................................................123
Login Modal ....................................................................................................123
NavBar ...............................................................................................................125
Abstract Designer............................................................................................125
Options Card.......................................................................................................127
Abstract Designer............................................................................................127
Phone.................................................................................................................127
Abstract Designer............................................................................................128
Progress .............................................................................................................128
3 / 331
TailwindCSS WebApps using B4X
Abstract Designer............................................................................................129
Radial Progress ...................................................................................................130
Abstract Designer............................................................................................131
Radio .................................................................................................................133
Abstract Designer............................................................................................133
Range ................................................................................................................134
Abstract Designer............................................................................................134
Rating ................................................................................................................135
Abstract Designer............................................................................................135
Stack ..................................................................................................................136
Abstract Designer............................................................................................137
Stat ....................................................................................................................141
Abstract Designer............................................................................................142
Select .................................................................................................................143
Abstract Designer............................................................................................143
Steps ..................................................................................................................144
Abstract Designer............................................................................................146
Swap ..................................................................................................................146
Abstract Designer............................................................................................147
Tabs ...................................................................................................................148
Abstract Designer............................................................................................148
Typography ........................................................................................................150
Abstract Designer............................................................................................151
TextBox ..............................................................................................................151
Abstract Designer............................................................................................154
TextArea.............................................................................................................156
Abstract Designer............................................................................................157
Time Lines ..........................................................................................................158
Abstract Designer............................................................................................159
Toast..................................................................................................................159
Abstract Designer............................................................................................160
ToolTip ...............................................................................................................160
Abstract Designer............................................................................................161
Table ..................................................................................................................161
Table1 ............................................................................................................162
Table2 ............................................................................................................162
Table3 ............................................................................................................163
Table4 ............................................................................................................163
Abstract Designer............................................................................................164
Toggle ................................................................................................................165
Abstract Designer............................................................................................165
Video..................................................................................................................167
Abstract Designer............................................................................................167
Window ..............................................................................................................167
4 / 331
TailwindCSS WebApps using B4X
Abstract Designer............................................................................................167
PlugIns ...............................................................................................................168
QRCode ..........................................................................................................168
Abstract Designer .......................................................................................168
QRCode/Barcode Scanner ................................................................................169
Abstract Designer .......................................................................................170
WebCam ........................................................................................................171
Abstract Designer .......................................................................................172
Sweet Alert .....................................................................................................174
Lottie Player ...................................................................................................176
Abstract Designer .......................................................................................176
FlatPick DateTimePicker ..................................................................................177
Abstract Designer .......................................................................................178
Roll DateTimePicker ........................................................................................181
Abstract Designer .......................................................................................182
FullCalendar ...................................................................................................183
Abstract Designer .......................................................................................184
PropertyTable .................................................................................................184
Abstract Designer .......................................................................................186
SignaturePad ..................................................................................................187
Abstract Designer .......................................................................................187
DocxTemplator ...............................................................................................188
API .........................................................................................................................189
Alert ...................................................................................................................189
Art Board ............................................................................................................191
Avatar ................................................................................................................192
Badge.................................................................................................................194
Bar Code Reader .................................................................................................196
Bottom Nav ........................................................................................................197
Bread Crumbs .....................................................................................................198
Button ................................................................................................................200
Button Group ......................................................................................................203
Card ...................................................................................................................204
Carousel .............................................................................................................207
ChartKick ............................................................................................................208
Chat ...................................................................................................................212
Checkbox............................................................................................................214
Col .....................................................................................................................216
Collapse Panels ...................................................................................................218
Div .....................................................................................................................219
Divider ...............................................................................................................244
Drawer ...............................................................................................................245
Drop Down .........................................................................................................247
DocxTemplator ...................................................................................................250
File Input ............................................................................................................250
Flex ....................................................................................................................253
5 / 331
TailwindCSS WebApps using B4X
Footer ................................................................................................................256
FullCalendar ........................................................................................................257
Grid ....................................................................................................................259
Hero ...................................................................................................................262
Image ................................................................................................................263
Indicator.............................................................................................................265
Kbd ....................................................................................................................266
Label ..................................................................................................................268
Link ....................................................................................................................270
List .....................................................................................................................271
List View .............................................................................................................272
Lottie Player .......................................................................................................273
Menu ..................................................................................................................275
Mockup Code ......................................................................................................277
Mockup Phone ....................................................................................................278
Mockup Window ..................................................................................................279
Modal .................................................................................................................280
Nav Bar ..............................................................................................................283
Options Card.......................................................................................................285
Page ..................................................................................................................286
Progress .............................................................................................................288
QRCode ..............................................................................................................290
RadialProgress ....................................................................................................291
RadioGroup.........................................................................................................292
Range ................................................................................................................295
Rating ................................................................................................................297
Row ...................................................................................................................299
Select .................................................................................................................301
SignaturePad ......................................................................................................304
Stats ..................................................................................................................306
Steps ..................................................................................................................308
Swap ..................................................................................................................309
Table ..................................................................................................................310
Tabs ...................................................................................................................315
TextArea.............................................................................................................316
TextBox ..............................................................................................................318
Toast..................................................................................................................322
Toggle ................................................................................................................324
Tooltip ................................................................................................................326
Webcam .............................................................................................................327
Demos with Source Code .........................................................................................328
Calculator ...........................................................................................................328
Expense Tracker (PocketBase) .............................................................................329
fetch REST API (English to Minion Tanslato) .........................................................329
LZString Compression ..........................................................................................330
WebScraping ......................................................................................................330
Xylophone ..........................................................................................................330
User Onboarding .................................................................................................330
6 / 331
TailwindCSS WebApps using B4X
Introduction
SithasoDaisy is a library of components built on top of TailwindCSS (Tailwind Labs) and DaisyUI (Pouya
Saadeghi) to help you create WebApps, WebSites, Single Page Application (SPA) and Progressive Web
Apps (PWA) with the power of the b4x programming language.
When it comes to developing anything that works on the internet browser, whether it is a WebApp or a
WebSite, one has to use HTML (Hyper Text Markup Language), CSS (Cascading Style Sheet) and JavaScript
(a dynamic programming language used for web development).
SithasoDaisy works on top of a programming language called b4x. It is not JavaScript, and for SithasoDaisy
to produce web applications, a code transpiler is used. A transpiler converts source code from one
programming language to another. For example, when one uses Flutter for web, they use a programming
language called Dart. When they build their application, their source code is transpiled / converted to
JavaScript for it to work on the interweb. There are many other programming languages that target
JavaScript, the Top 10, being:
1. Scala.js
2. Haxe
3. Dart
4. Elm
5. Imba
6. Nim
7. ClojureScript
8. ReasonML
9. Kotlin
10. TypeScript
B4X is a set of programming tools that is developed by Anywhere Software that uses Visual Basic like
syntax so that anyone who wants to, can create apps. The developed apps are able to run on Windows,
Linux, Mac, Apple Phones, Android Phones and Arduino IoT devices, mostly from the same code base. The
family product we will use here is called b4j i.e., Basic4Java. There is also b4a (basic4android), b4i
(basic4ios), b4r (basic4arduino).
Our b4x to JavaScript transpiler is called BANano. It is penned by Alain Bailleul, that is the BA in BANano,
whilst Nano, you guessed it right, nanotechnology. When creating your web projects with SithasoDaisy,
one can use the Abstract Designer and or write b4x code. We will show you how. To show you an idea of
the stuff we will be building, let's take a look at this image, directly from the DaisyUI website.
7 / 331
TailwindCSS WebApps using B4X
• We have created this FlipBook so that you can skim all the available components.
• A running demo is available on Netlify. This covers both writing code and abstract designer based
functionality.
• One can get the source code of the demo is in this Github repo.
Getting Started
To be able to start developing using B4X, one needs the b4j IDE (Integrated Development Environment.
This at the moment only runs on a Windows PC. One also needs the Java SDK. Figure 1 below depicts how
the B4X IDE looks like. We have a menu, a toolbar, the coding area and a module listing area, to mention
the few.
8 / 331
TailwindCSS WebApps using B4X
2. Creating Folders
Let's set up our PC for development. We need to set up a folder structure first.
(a) c:\b4j\libraries
(b) c:\b4j\shared
(c) c:\b4j\workspace
(d) c:\b4j\java
9 / 331
TailwindCSS WebApps using B4X
1. Head over to Anywhere Software Website and download b4j. You can click here to do that.
2. Click on Download B4J Full Version (64-BIT). After you download, ensure you install the application.
3. Also download the recommended OpenJDK 11. You can get it here. Unpack it to c:\b4j\java, you should
have
4. Download BANano
You will also need BANano. This is a b4j plugin. Click here to get it and unpack it. It should have this
content.
In the BANano download copy the contents of the Libraries folder to c:\b4j\libraries.
5. Download SithasoDaisy
10 / 331
TailwindCSS WebApps using B4X
5.1 Copy the SithasoDaisy.b4xlib to c:\b4j\libraries. You now should have. Also copy the contents of the
b4xtemplates folder to c:\libraries.
11 / 331
TailwindCSS WebApps using B4X
Start B4J, in the menu, click on 6.1 Tools then Configure Paths.
Click on the browse buttons to select the respective file and paths specified below.
12 / 331
TailwindCSS WebApps using B4X
This should open up the IDE with some template code. Press F5, this should compile your app and show a
screen.
13 / 331
TailwindCSS WebApps using B4X
Congratulations, you have just ran your first b4j developed java application with b4x. You can close the
App and the IDE.
Let's now run the other applications in our workspace folder which are TailwindCSS based, for this we will
need a development WebServer. I like the ease of use of Laragon. It comes with MySQL and other lovely
stuff.
Download it from here and run it. After installation run it, it should look similar to this screen. You can
also set it up to use SSL and different ports.
14 / 331
TailwindCSS WebApps using B4X
New to B4x?
If you are new to B4x, going through the guidelines would help you a great deal. There is also Video
Material done by Erel, who is the author of the b4x ecosystem.
2. To understand how the BANano transpiler works, read the BANano Essentials Booklet
3. You can also join the wonderful community of other coders like you.
Now let's get back to our topic, Creating WebApps with SithasoDaisy. We will first explain the project
templates.
Project Templates
SithasoDaisy comes with 4 source code templates for you to create WebApps. These are SithasoFree,
SithasoDrawer, SithasoCanvas and SithasoMultiUser. These project templates are created using the
abstract designer.
• Use SithasoFree as a base for completely empty projects that you design from scratch.
• Use SithasoDrawer as a base for projects with a top navigation bar and a drawer.
• Use SithasoCanvas (a thin version of SithasoDrawer) as a base for projects that you will start from
scratch that has empty drawer & navbar
15 / 331
TailwindCSS WebApps using B4X
• Use SithasoMultiUser as a base for projects with navigation bar, drawer, login screen, forgot password
screen, sign up screens. This is useful for an app with multiple users
All these templates are accessible from File > New menu and also from the downloads.
These are set to run on localhost. This is done in the config.properties in each of the projects.
The projects are also set up to save the transpiled javascript, css and html files to c:\www\laragon.
These need to be changed to suit your needs if you are not using laragon and also using different port
numbers.
SithasoFree
1. Open the c:\b4j\workpace\SithasoFree folder
2. Double click the SithasoFree.b4j file. This is a b4j project file. This will activate b4j.
3. Press F5 to run the application. This will also transpile your code to JavaScript, CSS, HTML etc
After compilation, you should see this app in action on your default web browser. As the app is empty,
nothing will be shown on your page.
16 / 331
TailwindCSS WebApps using B4X
The name of this app is "sithasofree". This is defined in the Main code module.
To access the transpiled source code (javascript, css and html) that resulted with what you see in the
browser, head over to the c:\laragon\www\sithasofree folder.
This contains all the stuff that you can deploy to your public webserver when you are finished developing
your webapp.
17 / 331
TailwindCSS WebApps using B4X
SithasoDrawer
1. Open the c:\b4j\workpace\SithasoDrawer folder
2. Double click the SithasoDrawer.b4j file. This is a b4j project file. This will activate b4j.
3. Press F5 to run the application. This will also transpile your code to JavaScript, CSS, HTML etc
18 / 331
TailwindCSS WebApps using B4X
After compilation, you should see this app in action on your default web browser.
The name of this app is "sithasodrawer". This is defined in the Main code module.
To access the transpiled source code (javascript, css and html) that resulted with what you see in the
browser, head over to the c:\laragon\www\sithasodrawer folder.
This contains all the stuff that you can deploy to your public webserver when you are finished developing
your webapp.
As you have noted above, this template has 3 things, these being:
19 / 331
TailwindCSS WebApps using B4X
1. NavBar
2. Drawer
3. PageViewer
SithasoCanvas
1. Open the c:\b4j\workpace\SithasoCanvas folder
2. Double click the SithasoCanvas.b4j file. This is a b4j project file. This will activate b4j.
3. Press F5 to run the application. This will also transpile your code to JavaScript, CSS, HTML etc
After compilation, you should see this app in action on your default web browser. Click the hamburger or
menu.
20 / 331
TailwindCSS WebApps using B4X
The name of this app is "sithasocanvas". This is defined in the Main code module.
21 / 331
TailwindCSS WebApps using B4X
To access the transpiled source code (javascript, css and html) that resulted with what you see in the
browser, head over to the c:\laragon\www\sithasocanvas folder.
This contains all the stuff that you can deploy to your public webserver when you are finished developing
your webapp.
SithasoMultiUser
1. Open the c:\b4j\workpace\SithasoMultiUser\B4j folder
2. Double click the SithasoMultiUser.b4j file. This is a b4j project file. This will activate b4j.
3. Press F5 to run the application. This will also transpile your code to JavaScript, CSS, HTML etc
22 / 331
TailwindCSS WebApps using B4X
After compilation, you should see this app in action on your default web browser. This has the complete
user cycle for (a) sign in, (b) sign up, (c) forgot password and (d) access the app.
23 / 331
TailwindCSS WebApps using B4X
24 / 331
TailwindCSS WebApps using B4X
The name of this app is "sithasomultiuser". This is defined in the Main code module.
To access the transpiled source code (javascript, css and html) that resulted with what you see in the
browser, head over to the c:\laragon\www\sithasomultiuser folder.
This contains all the stuff that you can deploy to your public webserver when you are finished developing
your webapp.
25 / 331
TailwindCSS WebApps using B4X
Creating WebApps
As you saw previously, both these templates provides different structured apps. Let's create an app using
these.
Creating a Project
1. Start B4J.
2. Click File
3. Click New
4. Click SithasoFree / SithasoDrawer / SithasoCanvas / SithasoMultiUser. SithasoDrawer is a 3 page project
whilst SithasoCanvas has no additional pages. SithasoMultiUser supports multiple user scenarios with Sign
In, Sign Up, Forgot Password screens etc.
A prompt screen will appear. Type in the Project Name and click Ok
26 / 331
TailwindCSS WebApps using B4X
The main starting point of the app when it runs is the Main code module. As soon as you press F5 to run
the app, the AppStart sub routine will fire. This will then fire the BANano_Ready method.
Banano_Ready executes code pgIndex.Initialize, which is where our app structure is built. This involves
building our pages, the navigation bar, drawers and other things. One can then use these templates to
add more pages to the app and the provided templates will provide guidance.
Basically, in the code modules, we have a BlankLayout template and other pages. The BlankLayout is used
to create other pages. You can double click any of the pages to activate it.
The structure of each page is almost the same. These methods / subs are COMPULSOY
27 / 331
TailwindCSS WebApps using B4X
You can see the Creating a Page section on how to add Pages to your project.
28 / 331
TailwindCSS WebApps using B4X
One can use the abstract designer to place components or create them via code. The main controller
when it comes to our app is the pgIndex code module. In it:
1. The base layout is loaded. This might have the main navigation bar and drawer of your app.
2. Other pages added on the app are linked to the drawer in this module.
3. The toggling of the drawer is done via the hamburger on this page.
4. Other nav-bar functionality can be added on this page.
5. The footer / bottom nav of your app can be added on this page.
If for example a page you add will be accessed via the drawer, it needs to be added in this method in
pgIndex.
You can explore the SithasoDemo source code on how most of this coding was done for more
understanding.
29 / 331
TailwindCSS WebApps using B4X
Creating a Page
With your b4j project opened. If not opened, double click the .bjl file of your project.
4. Type in the code module name and click Ok. The name should not have spaces or special characters.
We typed in demoADLottiePlayer as a code module name (example), the code module is then created.
30 / 331
TailwindCSS WebApps using B4X
Now what we need to do is copy the page template to this code module
In the Modules tab, locate the "BlankLayout" code module. This has the structure of the code needed for
any page you can create in the app. Double click the Module to activate it.
Select and copy all this code (Ctr + A) as is to the newly created code module. Do not change anything on
the BlankLayout code module. Paste the code to our new code module.
31 / 331
TailwindCSS WebApps using B4X
Step 3 - Giving the Page a Name, Title, Icon & Layout to load.
On the newly created code module, we need to make the page unique. To do this we will change 4 items
in it on the code we pasted. This data is compulsory per page in your WebApp.
1. name - change the name string from "adblank" to be your unique page name.
2. title - change the title of the page from "AD Blank" to be something more catchier.
3. icon - change the icon also to be unique. FontAwesome is the default integrated font family. You can
search for an icon there, https://fontawesome.com/
4. In the Show sub-routine, change the layout name from adblanklayout to be your unique layout name.
Usually, I just use the name + "layout" here.
As an example, below, we have updated the code for our page to be like this:
32 / 331
TailwindCSS WebApps using B4X
1. The code module name has been named in such a way that we know which page it is.
2. The name of the page on the code, title, icon and layout name on the BANano.LoadLayout code line
has been named clearly and properly.
Now we need to ensure that the view/layout of our page exist. We will create it from an existing .bjl file.
Copy the layout name e.g., "adlottieplayelayout" from the show sub.
In the Files tab, locate the adblanklayout.bjl file and open it.
In the prompt that follows, paste the layout name you copied and click Ok.
33 / 331
TailwindCSS WebApps using B4X
Now, on the Views Tree, click "page", to activate the custom view.
In the property bag for the page, change the "Page Name*" to EXACTLY MATCH the name you used in the
code module. For example.
This part below should remain UNCHANGED, i.e Name should ALWAYS be page
34 / 331
TailwindCSS WebApps using B4X
Creating a Grid
A grid is used to place components on your page. These could be textboxes, images, labels etc. Before the
components are placed, this grid needs to be defined. SithasoDaisy has a grid system that is based on the
Bootstrap grid. This has "invisible" rows and columns. Each row can have 12 columns. Columns can span
to a number of other columns. Below is a grid with 15 rows and in each row, we have 1 or more columns
that span.
Let's explain how this structure was created by looking at each row, based on the following b4x code.
Each row/column is allocated a unique id when the grid is built. Let's look at the rows.
R1 - In this row we have a row with 1 column named R1C1. This was created with
.AddRows1.AddColumns12. This adds 1 row and within that row add a column that will span 12 spaces.
So, all calls that start with AddRows? are for adding rows and all the ones with AddColumns? are for
adding columns within a row.
R2 - In this row we have a row with 2 columns named R1C1 and R1C2. This was created with
.AddRows1.AddColumns11.AddColumns1 - this adds 1 row and within that row two columns. The first
35 / 331
TailwindCSS WebApps using B4X
column R1C1 spans 11 spaces whilst the other column spans 1 space. 11+1=12.
R3 - Here we have used AddColumns10.AddColumns2. This makes 1 column span 10 and the other 2.
10+2=12.
etc
...
If the sum of columns exceeds 12, the columns that exceed 12 will be wrapped to the following row.
This is the HTML definition of r1 (row 1) and r2 (row 2) below. In the first row, we have a column that
spans 12 spaces across all devices and in the second row, we have two columns, one spanning 11 and
another spanning 1.
Abstract Designer
One can access the abstract designer by clicking Designer in the menu.
36 / 331
TailwindCSS WebApps using B4X
At the bottom right part of the b4j IDE, you will find tabs. These provide access to the resources of your
project.
In the files tab, you will notice there a bjl files (SithasoDemo). These are the abstract designer files. You
can click on Open Designer to open that file and drop elements to it.
Please refer to the New to B4x? section for more details about how the whole b4x ecosystem works as
that is beyond the scope of this eBook.
Creating Grids
We can also achieve grid creation by also using the abstract designer. Inside a page we add rows and
columns. We can then later add components to these columns. Items in the abstract designer are placed
inside others, establishing a parent child relationship. To create a grid in the abstract designer, one will
use SDUIRow and SDUIColumn components.
37 / 331
TailwindCSS WebApps using B4X
Below are the properties that have been set for each of the components placed in the abstract designer.
SDUIPage.page
Properties
Property Value
Page Name* adgridx
Flex false
Flex Wrap false
Gap 6
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIRow.R1
Properties
Property Value
ParentID adgridx
SDUICol.R1C1
Properties
Property Value
ParentID R1
Caption R1C1 (12)
Sizes xs=12; sm=12; md=12; lg=12; xl=?
Bg Color blue
Bg Color Intensity 600
Height 10
38 / 331
TailwindCSS WebApps using B4X
Property Value
Text Color white
SDUIRow.R2
Properties
Property Value
ParentID adgridx
SDUICol.R2C1
Properties
Property Value
ParentID R2
Caption R2C1 (11)
Sizes xs=12; sm=12; md=11; lg=11; xl=?
Bg Color blue
Bg Color Intensity 600
Height 10
Text Color white
SDUICol.R2C2
Properties
Property Value
ParentID R2
Caption R2C2 (1)
Sizes xs=12; sm=12; md=1; lg=1; xl=?
Bg Color orange
Bg Color Intensity 600
Height 10
Text Color white
SDUIRow.R3
Properties
Property Value
ParentID adgridx
SDUICol.R3C1
Properties
Property Value
ParentID R3
Caption R3C1 (10)
Sizes xs=12; sm=12; md=10; lg=10; xl=?
Bg Color blue
Bg Color Intensity 600
Height 10
Text Color white
SDUICol.R3C2
Properties
Property Value
ParentID R3
Caption R3C2 (2)
39 / 331
TailwindCSS WebApps using B4X
Property Value
Sizes xs=12; sm=12; md=2; lg=2; xl=?
Bg Color orange
Bg Color Intensity 600
Height 10
Text Color white
SDUIRow.R4
Properties
Property Value
ParentID adgridx
SDUICol.R4C1
Properties
Property Value
ParentID R4
Caption R4C1 (9)
Sizes xs=12; sm=12; md=9; lg=9; xl=?
Bg Color blue
Bg Color Intensity 600
Height 10
Text Color white
SDUICol.R4C2
Properties
Property Value
ParentID R4
Caption R4C2 (3)
Sizes xs=12; sm=12; md=3; lg=3; xl=?
Bg Color orange
Bg Color Intensity 600
Height 10
Text Color white
SDUIRow.R5
Properties
Property Value
ParentID adgridx
SDUICol.R5C1
Properties
Property Value
ParentID R5
Caption R5C1 (6)
Sizes xs=12; sm=12; md=6; lg=6; xl=?
Bg Color blue
Bg Color Intensity 600
Height 10
Text Color white
SDUICol.R5C2
40 / 331
TailwindCSS WebApps using B4X
Properties
Property Value
ParentID R5
Caption R5C2 (6)
Sizes xs=12; sm=12; md=6; lg=6; xl=?
Bg Color orange
Bg Color Intensity 600
Height 10
Text Color white
SDUIRow.R6
Properties
Property Value
ParentID adgridx
SDUICol.R6C1
Properties
Property Value
ParentID R6
Caption R6C1 (2)
Sizes xs=12; sm=12; md=2; lg=2; xl=?
Bg Color blue
Bg Color Intensity 600
Height 10
Text Color white
SDUICol.R6C2
Properties
Property Value
ParentID R6
Caption R6C2 (8)
Sizes xs=12; sm=12; md=8; lg=8; xl=?
Bg Color orange
Bg Color Intensity 600
Height 10
Text Color white
SDUICol.R6C3
Properties
Property Value
ParentID R6
Caption R6C3 (2)
Sizes xs=12; sm=12; md=2; lg=2; xl=?
Bg Color yellow
Bg Color Intensity 600
Height 10
Text Color white
41 / 331
TailwindCSS WebApps using B4X
Adding Components
To add components to the grid, we use a row & column reference. We call this a cell. For example, to
refer to row 10 column 2, we will use Cell(10, 2)
Handling Events
When designing your webapp with the abstract designer, one is able to add events code for any
component placed in the abstract designer.
As example, let's open the adbuttonslayout file. This layout file represents these buttons output.
The abstract design when opened, looks like this. We have placed SDUIButtons next to each other and set
their properties.
We have placed SDUIButton components inside a SDUIPage component. The "Page Name" is adbuttons.
42 / 331
TailwindCSS WebApps using B4X
We have set the page (a div) to be a container, with mx-auto, it should be flex & flex-wrap. There should
be a gap of 5.
We have also set the p(adding) to be 6. a(ll) sides, x (left & right), y (top & bottom), t (top), b (bottom), l
(left), r (right).
For each of the buttons added to this adbuttons page, we have given it a ParentID (this is its parent) and
defined the properties for it, like caption, type, color, badge value etc. Also each component should have
a unique name.
43 / 331
TailwindCSS WebApps using B4X
The web element inspector shows us this for this button. All this based on the props given in the abstract
designer.
To generate events for components, one can: (a) right click on the element (b) select Generate and then
(c) select the event to generate. Usually buttons have a click Event. Components this radio / select /
checkbox usually have a change event, which receives which id is selected.
44 / 331
TailwindCSS WebApps using B4X
The other option is to use the Tools > Generate Members functionality.
This provides a list of all component on this abstract design which you can expand, select all the elements
to generate events for and then click "Generate Members" for your code to have the callbacks added.
45 / 331
TailwindCSS WebApps using B4X
The event generated will be the unique name of the component & the event, SDUIButton1_click. You can
change this name to suit your needs on the property bag (before generating the events). Then all you
have to do it add the code to execute when that event takes place.
As an example, in the code below, code is executed when a tab is changed. This executes a data call on
the pocketbase back-end and returns a result.
46 / 331
TailwindCSS WebApps using B4X
Please note: Each component placed in the abstract designer SHOULD ALWAYS have the ParentID
specified.
When the demo app is ran, it displays this content. These buttons are showing these designs based on the
settings applied on the properties for each of the buttons. All of these settings are explained per
component in the API section.
47 / 331
TailwindCSS WebApps using B4X
Let's see what are the settings for each of these buttons below.
SDUIPage.page
Properties
Property Value
Page Name* adbuttons
Gap 5
Paddings a=6; x=?; y=?; t=?; b=?; l=?; r=?
SDUIButton.SDUIButton1
Properties
Property Value
ParentID adbuttons
Button Type badge
Badge 2
Badge Visible true
Size md
Shadow true
SDUIButton.SDUIButton2
Properties
Property Value
ParentID adbuttons
Button Type button-icon
Shape circle
Variant success
Badge 10
Badge Color success
Badge Visible true
Outline true
Size lg
Shadow true
SDUIButton.SDUIButton3
Properties
Property Value
ParentID adbuttons
Button Type indicator
Variant error
Badge 4
Badge Color info
Badge Outline true
Badge Visible true
Outline true
Size md
Shadow true
SDUIButton.SDUIButton4
Properties
48 / 331
TailwindCSS WebApps using B4X
Property Value
ParentID adbuttons
Button Type minus-plus
Variant info
Badge
Badge Color
Size md
SDUIButton.SDUIButton5
Properties
Property Value
ParentID adbuttons
Button Type normal
Badge
Badge Color
Loading true
Size lg
SDUIButton.SDUIButton6
Properties
Property Value
ParentID adbuttons
Caption Button 6
Shape rounded
Variant none
Bg Color #964B00
Text Color white
Badge
Badge Color
Size md
SDUIButton.SDUIButton7
Properties
Property Value
ParentID adbuttons
Caption Button 7
Variant success
Text Color white
Badge
Badge Color
Size xs
SDUIButton.SDUIButton8
Properties
Property Value
ParentID adbuttons
Caption Button 8
Button Type fab
Variant success
Badge
Badge Color
49 / 331
TailwindCSS WebApps using B4X
Property Value
Size md
SDUIButton.SDUIButton9
Properties
Property Value
ParentID adbuttons
Caption Button 9
Variant info
Text Color white
Right Icon fa-solid fa-book
Badge
Badge Color
Size md
SDUIButton.SDUIButton10
Properties
Property Value
ParentID adbuttons
Caption Button 10
Variant accent
Icon
Right Icon fa-solid fa-book
Badge
Badge Color
Loading true
Size md
Repetitive Layouts
This is a product grid created using a single template with dynamic content.
50 / 331
TailwindCSS WebApps using B4X
We have a list of products that we want to display and just want to create a simple template. This
template can have events like click etc.
SDUIPage.page
Properties
Property Value
Page Name* adgridy
Flex false
Flex Wrap false
Paddings a=?; x=10; y=20; t=?; b=?; l=?; r=?
SDUIDiv.dprojects
Properties
Property Value
ParentID adgridy
Grid true
Grid Cols 1
Device Grid Cols xs=?; sm=2; md=4; lg=?; xl=?
Gap X 6
Gap Y 10
The grid will host each of the products. It has grid-cols=1 and is responsive with sm:grid-cols-2 and
md:grid-cols-4 and gap-x-6 and gap-y-10.
Step 3: Define the template for each product. Each product is defined as a card with additional
components. It is clickable, so we will use a link as the parent element. The id (data-id) of this link will be
soured from each product we will add. Information that will be changed per product will be enclosed
inside {{ }}
51 / 331
TailwindCSS WebApps using B4X
SDUILink.pcard
Properties
Property Value
ParentID adgridy
Caption
Href
Classes flex flex-col bg-white drop-shadow hover:drop-
shadow-lg hover:opacity-70 rounded-md
Attributes data-id:{{id}}
data-id:{{id}} will create an attribute in the element using the id field of each product, e.g. data-id="p1"
SDUIImage.pimage
Properties
Property Value
ParentID pcard
Source {{image}}
Alt text {{alt}}
Object Resize cover
Width
Height 36
Classes rounded-tl-md rounded-tr-md
Attributes data-id:{{id}}_image
SDUIDiv.pcontent
Properties
Property Value
Paddings a=?; x=3; y=2; t=?; b=?; l=?; r=?
SDUILabel.phead
Properties
Property Value
ParentID pcontent
Size h1
Caption {{product}}
Font Weight semibold
Attributes data-id:{{id}}_product
52 / 331
TailwindCSS WebApps using B4X
SDUILabel.pprice
Properties
Property Value
ParentID pcontent
Caption $ {{price}}
Attributes data-id:{{id}}_price
We first add the template so that our app knows about it. When added a template can be used anywhere.
A template is identified by the parent element it uses and also the children inside it. In our template, the
host of other components is named 'pcard'. Inside pcard, we have pimage, pcontent, phead and pprice. So
when adding a template we indicate all the components it uses starting with the main component hosting
others.
Then at anytime we want to inject the contents of our template to any parent component, we execute
this call.
Each item will have a click event based on the name of its host, being pcard. When this happens, we can
get the id from the data-id that was used and process any other step needed.
Related Content
Xylophone App
Components
Below we will look at how the components are created using code. You can however use the abstract
designer to achieve the same functionality. The complete source code for all the components feature here
is in the SithasoDaisyDemo and also the Netlify website.
The API section details all the Properties (available in the abstract designer), events and methods available
for each component in SithasoDaisy.
For each component we will show the code part first and then the Abstract Designer portion indicating
only propeties were changed in the Abstract Designer to create same. This will start with the page and
then each component on the page. On the page you can place a SDUIGrid or SDUIFlex first before your
53 / 331
TailwindCSS WebApps using B4X
components
Alerts
Alert informs users about important events.
You can also make an alert be timed. For example, setting altx2.TimeOut = 2000, will hide the alert after 2
seconds.
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adalerts
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
54 / 331
TailwindCSS WebApps using B4X
SDUIAlert.SDUIAlert1
Properties
Property Value
ParentID adalerts
Text Color white
SDUIAlert.SDUIAlert2
Properties
Property Value
ParentID adalerts
Variant error
SDUIAlert.SDUIAlert3
Properties
Property Value
ParentID adalerts
Variant success
SDUIAlert.SDUIAlert4
Properties
Property Value
ParentID adalerts
Variant warning
SDUIAlert.SDUIAlert5
Properties
Property Value
ParentID adalerts
Alert Type big
Variant warning
Margins a=?; x=10; y=?; t=?; b=?; l=?; r=?
SDUIAlert.SDUIAlert6
Properties
Property Value
ParentID adalerts
Alert Type title
Variant warning
Bg Color #adfc03
55 / 331
TailwindCSS WebApps using B4X
Animations
Art Board
Artboard provides fixed size container to display a demo content on mobile size.
56 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adartboard
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIArtboard.SDUIArtboard1
57 / 331
TailwindCSS WebApps using B4X
Properties
Property Value
ParentID adartboard
Demo true
Avatars
Avatars are used to show a thumbnail representation of an individual or business in the interface.
58 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adavatars
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIAvatar.SDUIAvatar1
Properties
Property Value
ParentID adavatars
Size 20
Status online
Badge Color
59 / 331
TailwindCSS WebApps using B4X
Property Value
Shadow true
SDUIAvatar.SDUIAvatar2
Properties
Property Value
ParentID adavatars
Size 20
Shape rounded
Badge Color
SDUIAvatar.SDUIAvatar3
Properties
Property Value
ParentID adavatars
Size 20
Shape squircle
Badge Color
SDUIAvatar.SDUIAvatar4
Properties
Property Value
ParentID adavatars
Size 20
Shape hexagon
Badge Color
SDUIAvatar.SDUIAvatar5
Properties
Property Value
ParentID adavatars
Size 20
Shape triangle
Badge Color
SDUIAvatar.SDUIAvatar6
Properties
Property Value
ParentID adavatars
Size 24
Status online
Online Color #ED0000
Badge Color
Ring true
Ring Color primary
Ring Offset 2
Ring Offset Color base
Ring Offset Color Intensity 100
SDUIAvatar.SDUIAvatar7
Properties
60 / 331
TailwindCSS WebApps using B4X
Property Value
ParentID adavatars
Size 20
Badge Color
SDUIAvatar.SDUIAvatar8
Properties
Property Value
ParentID adavatars
Size 20
Image Url
Badge Color
Place Holder 99+
Text Size 3xl
Bg Color neutral
Bg Color Intensity focus
Badges
Badges are used to inform the user of the status of specific data.
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adbadge
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
61 / 331
TailwindCSS WebApps using B4X
SDUIBadge.SDUIBadge1
Properties
Property Value
ParentID adbadge
Caption Badge
Size md
SDUIBadge.SDUIBadge2
Properties
Property Value
ParentID adbadge
Variant accent
Caption accent
Size md
SDUIBadge.SDUIBadge3
Properties
Property Value
ParentID adbadge
Variant error
Caption error
Size md
SDUIBadge.SDUIBadge4
Properties
Property Value
ParentID adbadge
Variant ghost
Caption ghost
Size md
SDUIBadge.SDUIBadge5
Properties
Property Value
ParentID adbadge
Variant info
Caption info
Size md
SDUIBadge.SDUIBadge6
Properties
Property Value
ParentID adbadge
Variant primary
Caption primary
Size md
SDUIBadge.SDUIBadge7
Properties
Property Value
ParentID adbadge
62 / 331
TailwindCSS WebApps using B4X
Property Value
Variant secondary
Caption secondary
Size md
SDUIBadge.SDUIBadge8
Properties
Property Value
ParentID adbadge
Variant success
Caption success
Size md
SDUIBadge.SDUIBadge9
Properties
Property Value
ParentID adbadge
Variant warning
Caption warning
Size md
SDUIBadge.SDUIBadge10
Properties
Property Value
ParentID adbadge
Variant none
Caption icons
Size lg
No Icons false
Left Icon Name fa-solid fa-user
Right Icon Name fa-solid fa-circle-xmark
SDUIBadge.SDUIBadge11
Properties
Property Value
ParentID adbadge
Variant primary
Caption outline
Outline true
Size md
63 / 331
TailwindCSS WebApps using B4X
Bread Crumbs
Breadcrumbs helps users to navigate through the website.
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adbreadcrumbs
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIBreadCrumbs.SDUIBreadCrumbs1
Properties
Property Value
ParentID adbreadcrumbs
Size md
SDUIBreadCrumbs.SDUIBreadCrumbs2
Properties
Property Value
ParentID adbreadcrumbs
Size md
Buttons
Buttons allow the user to take actions or make choices.
64 / 331
TailwindCSS WebApps using B4X
65 / 331
TailwindCSS WebApps using B4X
66 / 331
TailwindCSS WebApps using B4X
Abstract Designer
This was touched on in Abstract Designer DeepDive
67 / 331
TailwindCSS WebApps using B4X
Buttons - Gradients
Button Groups
Button group shows buttons next to each other. This can be used as Pagination also.
68 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adbuttongroup
69 / 331
TailwindCSS WebApps using B4X
Property Value
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIButtonGroup.SDUIButtonGroup1
Properties
Property Value
ParentID adbuttongroup
Size md
SDUIButtonGroup.SDUIButtonGroup2
Properties
Property Value
ParentID adbuttongroup
Alignment vertical
Size lg
SDUIButtonGroup.SDUIButtonGroup3
Properties
Property Value
ParentID adbuttongroup
Size xs
SDUIButtonGroup.SDUIButtonGroup4
Properties
Property Value
ParentID adbuttongroup
Size md
SDUIButtonGroup.SDUIButtonGroup5
Properties
Property Value
ParentID adbuttongroup
Size md
SDUIButtonGroup.SDUIButtonGroup6
Properties
Property Value
ParentID adbuttongroup
Size lg
70 / 331
TailwindCSS WebApps using B4X
Bottom Nav
Bottom navigation bar allows navigation between primary screens.
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adbottomnav
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIBottomNav.SDUIBottomNav1
Properties
Property Value
ParentID adbottomnav
Size md
Cards
Cards are used to group and display content in a way that is easily readable.
71 / 331
TailwindCSS WebApps using B4X
72 / 331
TailwindCSS WebApps using B4X
73 / 331
TailwindCSS WebApps using B4X
74 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUICard.SDUICard1
Properties
Property Value
ParentID adcard
Title Shoes
Height 96
Width 96
Col Span 3
Row Span 4
Bg Color
Bg Color Intensity
75 / 331
TailwindCSS WebApps using B4X
SDUICard.SDUICard2
Properties
Property Value
ParentID adcard
Image Url ./assets/nike.jpg
Title Card Component
Title Badge 14, May
Title Badge Color ghost
Description Use card component to easily show blog posts,
products, features, items and more.
Height 420px
Width 400px
Bg Color
Bg Color Intensity
Compact true
76 / 331
TailwindCSS WebApps using B4X
SDUICard.SDUICard4
Properties
Property Value
ParentID adcard
Image Width 200px
Title Shoes
Height 96
Width 500px
Bg Color
Bg Color Intensity
Card Side true
77 / 331
TailwindCSS WebApps using B4X
SDUICard.SDUICard3
Properties
Property Value
ParentID adcard
Card Type empty
Image Url
Title
Description
Center Items true
Height 400px
Width 400px
Bg Color
Bg Color Intensity
Compact true
SDUIAvatar.SDUIAvatar1
Properties
Property Value
ParentID SDUICard3_content
Size 24
Shape squircle
Status online
Badge Color
Margins a=?; x=?; y=?; t=5; b=?; l=?; r=?
SDUILabel.SDUILabel1
Properties
78 / 331
TailwindCSS WebApps using B4X
Property Value
ParentID SDUICard3_content
Caption Betsy Braddock
Text Size lg
Margins a=?; x=?; y=?; t=2; b=?; l=?; r=?
SDUILabel.SDUILabel2
Properties
Property Value
ParentID SDUICard3_content
HTML <span>Strategic Art Manager</span><br>?
<span>Global Illustration Observer</span><br>?
<span>Business Alignment
Developer</span><br>
Text Size xs
Margins a=?; x=?; y=?; t=2; b=2; l=?; r=?
SDUIBadge.SDUIBadge1
Properties
Property Value
ParentID SDUICard3_content
Caption Design
Size md
Margins a=?; x=2; y=2; t=?; b=?; l=?; r=?
SDUIBadge.SDUIBadge2
Properties
Property Value
ParentID SDUICard3_content
Caption Art
Size md
Margins a=?; x=2; y=?; t=?; b=?; l=?; r=?
SDUIBadge.SDUIBadge3
Properties
Property Value
ParentID SDUICard3_content
Caption Illustration
Size md
Margins a=?; x=2; y=?; t=?; b=?; l=?; r=?
SDUIDivider.SDUIDivider1
Properties
Property Value
ParentID SDUICard3_content
SDUIButton.SDUIButton1
Properties
Property Value
ParentID SDUICard3_content
Caption Follow...
Variant success
Size sm
Margins a=?; x=?; y=?; t=4; b=?; l=?; r=?
79 / 331
TailwindCSS WebApps using B4X
SDUIPage.page
Properties
Property Value
Page Name* adcard
FullPage true
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
Carousel
Carousel show images or content in a scrollable area.
80 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adcarousel
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUICarousel.SDUICarousel1
Properties
Property Value
ParentID adcarousel
Rounded Box true
SDUICarousel.SDUICarousel2
Properties
Property Value
ParentID adcarousel
Rounded Box true
Vertical true
Chat
Chat bubbles are used to show one line of conversation and all its data, including the author image,
author name, time, etc.
81 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adchat
Flex Col true
Flex Wrap false
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIChat.SDUIChat1
Properties
Property Value
ParentID adchat
82 / 331
TailwindCSS WebApps using B4X
Property Value
Image Shape squircle
Rounded Box true
Shadow 2xl
CheckBox
Checkboxes are used to select or deselect a value.
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adcheckbox
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUICheckbox.SDUICheckbox1
Properties
Property Value
ParentID adcheckbox
Checked true
Size md
83 / 331
TailwindCSS WebApps using B4X
SDUICheckbox.SDUICheckbox2
Properties
Property Value
ParentID adcheckbox
Variant primary
Placement right
Size md
SDUICheckbox.SDUICheckbox3
Properties
Property Value
ParentID adcheckbox
Size md
Indeterminate true
Code
Code mockup is used to show a block of code in a box that looks like a code editor.
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* admockcode
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIMockupCode.SDUIMockupCode1
Properties
Property Value
ParentID admockcode
Code Type card
84 / 331
TailwindCSS WebApps using B4X
We have added some action buttons. These are available with the _action event
Collapse
Collapse is used for showing and hiding content.
85 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adcollapse
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUICollapsePanels.SDUICollapsePanels1
Properties
Property Value
ReadMe Children name
ParentID adcollapse
Open false
SDUICollapsePanels.SDUICollapsePanels2
Properties
86 / 331
TailwindCSS WebApps using B4X
Property Value
ReadMe Children name
ParentID adcollapse
Plus true
Open false
Bg Color red
Bg Color Intensity 200
One can create the layouts for each panel and then load them like this.
banano.LoadLayout(SDUICollapsePanels1.Panel(1).Here, "collapse1")
banano.LoadLayout(SDUICollapsePanels1.Panel(2).Here, "collapse2")
banano.LoadLayout(SDUICollapsePanels1.Panel(3).Here, "collapse3")
Each component in all the panels should have a unique name. The number of panels depends on the
number of titles created.
Divider
Divider will be used to separate content vertically or horizontally.
87 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* addivider
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIDiv.SDUIDiv1
Properties
Property Value
ParentID addivider
Flex true
Flex Col true
W Full true
Classes border-opacity-50
SDUIDiv.SDUIDiv2
Properties
Property Value
ParentID SDUIDiv1
Caption content
Grid true
Bg Color base
Bg Color Intensity 300
Place Items center
Height 20
Classes card rounded-box
SDUIDiv.SDUIDiv3
Properties
Property Value
ParentID SDUIDiv1
Caption content
Grid true
Bg Color base
Bg Color Intensity 300
88 / 331
TailwindCSS WebApps using B4X
Property Value
Place Items center
Height 20
Classes card rounded-box
SDUIDiv.SDUIDiv4
Properties
Property Value
ParentID addivider
Flex true
Flex Row true
W Full true
Classes border-opacity-50
SDUIDiv.SDUIDiv5
Properties
Property Value
ParentID SDUIDiv4
Caption content
Flex Grow true
Grid true
Bg Color base
Bg Color Intensity 300
Place Items center
Height 20
Classes card rounded-box
SDUIDiv.SDUIDiv6
Properties
Property Value
ParentID SDUIDiv4
Caption content
Flex Grow true
Grid true
Bg Color base
Bg Color Intensity 300
Place Items center
Height 20
Classes card rounded-box
SDUIDivider.SDUIDivider1
Properties
Property Value
ParentID SDUIDiv1
Alignment vertical
Caption OR
SDUIDivider.SDUIDivider2
Properties
Property Value
ParentID SDUIDiv4
89 / 331
TailwindCSS WebApps using B4X
Property Value
Alignment horizontal
Caption OR
Drawer
Drawer is a grid layout that can show/hide a sidebar on the left or right side of the page.
In pgIndex, there is a drawer for the app. This has been created with this code. This is then added to the
body of the page.
Sub CreateAppDrawer
'add a drawer to the body of the page
drawer = app.AddAppDrawer("80", False)
'overlay transparent
drawer.OverlayTransparent = True
drawer.ItemHoverColorIntensity("blue", "100")
drawer.ItemFocusColorIntensity("blue", "100")
drawer.ItemActiveColorIntensity("blue", "100")
'create the drawer menu and page linkages
CreateDrawerMenu
End Sub
90 / 331
TailwindCSS WebApps using B4X
Each item in the drawer is linked to a particular page and this can have a parent & child relationship as
indicated above. One can also add a link to the drawer which will not be linked to a page, for example.
When a drawer item is clicked, a menu_click event is fired. This closes the drawer and then if the item you
have clicked is linked to a page, app.ShowPage will show the page and exit. For items like the left and
right drawer, their respective processes are called.
91 / 331
TailwindCSS WebApps using B4X
For the left and right drawers, the modals are shown.
92 / 331
TailwindCSS WebApps using B4X
93 / 331
TailwindCSS WebApps using B4X
To close the dawer, one needs to call the .Close method and no longer use .Hide
Drop Down
Dropdown can open a menu or any other element when the button is clicked.
94 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* addropdown
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIDropDown.SDUIDropDown1
Properties
Property Value
ParentID addropdown
Button Caption DropDown
Button/Avatar/Icon Size md
Rounded Box true
Shadow true
SDUIDropDown.SDUIDropDown2
Properties
Property Value
ParentID addropdown
Activator avatar
Button Caption DropDown
95 / 331
TailwindCSS WebApps using B4X
Property Value
Button/Avatar/Icon Size 30
Avatar Url ./assets/minion.jpg
Avatar Status online
Menu Compact true
Rounded Box true
Shadow true
SDUIDropDown.SDUIDropDown3
Properties
Property Value
ParentID addropdown
Activator icon
Button Caption DropDown
Icon Name fa-solid fa-child-reaching
Button/Avatar/Icon Size 2xl
Badge Color secondary
Badge Value 10
Badge Visible true
Menu Vertical false
Rounded Box true
Shadow true
Width
Existing Blocks
96 / 331
TailwindCSS WebApps using B4X
File Input
File Input is a an input field for uploading files.
97 / 331
TailwindCSS WebApps using B4X
FileInputProgress
FileInputCamera
98 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adfileinput
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIFileInput.SDUIFileInput1
Properties
Property Value
ParentID adfileinput
Size md
Caption File Upload
Bordered false
SDUIFileInput.SDUIFileInput2
Properties
Property Value
ParentID adfileinput
Type camera
Size lg
Caption File Upload
Bordered false
SDUIFileInput.SDUIFileInput3
Properties
Property Value
ParentID adfileinput
Type input-group
Size md
Caption File Upload
Color warning
99 / 331
TailwindCSS WebApps using B4X
Property Value
Bordered false
SDUIFileInput.SDUIFileInput4
Properties
Property Value
ParentID adfileinput
Type progress
Size lg
Caption File Upload
Color secondary
Bordered false
Footer
Footer can contain logo, copyright notice, and links to other pages.
100 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adfooter
Flex false
Flex Wrap false
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
101 / 331
TailwindCSS WebApps using B4X
SDUIFooter.SDUIFooter1
Properties
Property Value
ParentID adfooter
Bg Color neutral
Text Color neutral
Text Color Intensity content
Paddings a=10; x=?; y=?; t=?; b=?; l=?; r=?
Gradients
102 / 331
TailwindCSS WebApps using B4X
Hero
Hero is a component for displaying a large box or image with a title and description.
103 / 331
TailwindCSS WebApps using B4X
104 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adhero
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIHero.SDUIHero1
Properties
Property Value
ParentID adhero
Content Classes text-center
Height 500px
Width 800px
Rounded Box true
Shadow true
SDUIDiv.SDUIDiv1
Properties
Property Value
ParentID SDUIHero1_content
Flex Wrap true
Justify Content
Justify Items
Max Width md
105 / 331
TailwindCSS WebApps using B4X
SDUILabel.SDUILabel1
Properties
Property Value
ParentID SDUIDiv1
Size h1
Caption Hello There
Text Size 5xl
SDUILabel.SDUILabel2
Properties
Property Value
ParentID SDUIDiv1
Caption Lorem Ipsum
Lorem Ipsum true
Paddings a=?; x=?; y=6; t=?; b=?; l=?; r=?
SDUIButton.SDUIButton1
Properties
Property Value
ParentID SDUIDiv1
Caption Getting Started
Variant primary
Size md
106 / 331
TailwindCSS WebApps using B4X
SDUIHero.SDUIHero2
Properties
Property Value
ParentID adhero
Content Classes flex-col lg:flex-row
Height 500px
Width 800px
Rounded Box true
Shadow true
SDUIImage.SDUIImage1
Properties
Property Value
ParentID SDUIHero2_content
Source ./assets/img_4.jpg
Width 260px
Height 400px
Classes max-w-sm rounded-lg shadow-2xl
SDUILabel.SDUILabel5
Properties
Property Value
ParentID SDUIHero2_content
Size div
SDUILabel.SDUILabel3
Properties
Property Value
ParentID SDUILabel5
Size h1
Caption Box Office News!!!
Text Size 5xl
SDUILabel.SDUILabel4
Properties
Property Value
ParentID SDUILabel5
Lorem Ipsum true
Paddings a=?; x=?; y=6; t=?; b=?; l=?; r=?
SDUIButton.SDUIButton2
Properties
Property Value
ParentID SDUILabel5
Caption Getting Started
Variant primary
Size md
107 / 331
TailwindCSS WebApps using B4X
Indicators
Indicators are used to place an element on the corner of another element.
108 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adindicators
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIIndicator.SDUIIndicator1
Properties
Property Value
ParentID adindicators
Color secondary
Size md
SDUIDiv.SDUIDiv1
Properties
Property Value
ParentID SDUIIndicator1
109 / 331
TailwindCSS WebApps using B4X
Property Value
Caption content
Grid true
Bg Color base
Bg Color Intensity 300
Place Items center
Width 32
Height 32
SDUIAvatar.SDUIAvatar1
Properties
Property Value
ParentID adindicators
Size 20
Shape rounded
Badge Caption typing..
Badge Color secondary
Badge Visible true
SDUIIndicator.SDUIIndicator2
Properties
Property Value
ParentID adindicators
Caption Required
Size md
SDUITextBox.SDUITextBox1
Properties
Property Value
ParentID SDUIIndicator2
Size md
Caption
Place Holder Your email address
Date Time Format yyyy-mm-dd hh:mm
SDUIIndicator.SDUIIndicator3
Properties
Property Value
ParentID adindicators
Type card
Button Color pimay
Bottom true
SDUIIndicator.SDUIIndicator4
Properties
Property Value
ParentID adindicators
Color secondary
110 / 331
TailwindCSS WebApps using B4X
Property Value
Caption image loading...
Button Color primary
Center true
Middle true
Margins a=6; x=?; y=?; t=?; b=?; l=?; r=?
SDUIImage.SDUIImage1
Properties
Property Value
ParentID SDUIIndicator4
Source ./assets/banner_6.jpg
Shape rounded
Width 300px
Height 150px
Kbd
Kbd is used to display keyboard shortcuts.
111 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adkbd
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIKbd.SDUIKbd1
Properties
Property Value
ParentID adkbd
Caption A
Size md
Shadow true
SDUIKbd.SDUIKbd2
Properties
Property Value
ParentID adkbd
Caption Shift
112 / 331
TailwindCSS WebApps using B4X
Property Value
Size md
Shadow true
SDUIKbd.SDUIKbd3
Properties
Property Value
ParentID adkbd
Caption ⌘
Size md
Shadow true
SDUIKbd.SDUIKbd4
Properties
Property Value
ParentID adkbd
Caption ⌥
Size md
Shadow true
SDUIKbd.SDUIKbd5
Properties
Property Value
ParentID adkbd
Caption ⇧
Size md
Shadow true
SDUIKbd.SDUIKbd6
Properties
Property Value
ParentID adkbd
Caption ⌃
Size md
Shadow true
Links
Link adds the missing underline style to links.
113 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adlinks
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUILink.SDUILink1
Properties
Property Value
ParentID adlinks
Caption A simple link
SDUILink.SDUILink2
Properties
Property Value
ParentID adlinks
Caption A simple link
Variant primary
SDUILink.SDUILink3
Properties
Property Value
ParentID adlinks
Caption A simple link
Variant secondary
SDUILink.SDUILink4
Properties
114 / 331
TailwindCSS WebApps using B4X
Property Value
ParentID adlinks
Caption A simple link
Variant accent
SDUILink.SDUILink5
Properties
Property Value
ParentID adlinks
Caption A simple link
Hover true
Lists
Abstract Designer
115 / 331
TailwindCSS WebApps using B4X
ListView
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adlistview
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIListView.SDUIListView1
Properties
Property Value
ParentID adlistview
SDUIListView1.Clear
SDUIListView1.AddItem("p1", "./assets/face5.jpg", "John Doe", "Missisipi", "48")
SDUIListView1.AddItem("p2", "./assets/face1.jpg", "John Doe 1", "Missisip", "47")
SDUIListView1.AddItem("p3", "./assets/face2.jpg", "John Doe 2", "Missisi", "46")
SDUIListView1.AddItem("p4", "./assets/face3.jpg", "John Doe 3", "Missis", "")
SDUIListView1.AddItem("p5", "./assets/face4.jpg", "John Doe 3", "Missi", "44")
Mask
Mask crops the content of the element to common shapes.
116 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* admask
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIAvatar.SDUIAvatar1
Properties
Property Value
ParentID admask
Shape squircle
Badge Color
SDUIAvatar.SDUIAvatar2
Properties
Property Value
ParentID admask
Shape heart
Badge Color
SDUIAvatar.SDUIAvatar3
Properties
117 / 331
TailwindCSS WebApps using B4X
Property Value
ParentID admask
Shape hexagon
Badge Color
SDUIAvatar.SDUIAvatar4
Properties
Property Value
ParentID admask
Shape hexagon-2
Badge Color
SDUIAvatar.SDUIAvatar5
Properties
Property Value
ParentID admask
Shape decagon
Badge Color
SDUIAvatar.SDUIAvatar6
Properties
Property Value
ParentID admask
Shape pentagon
Badge Color
SDUIAvatar.SDUIAvatar7
Properties
Property Value
ParentID admask
Shape pentagon
Badge Color
SDUIAvatar.SDUIAvatar8
Properties
Property Value
ParentID admask
Shape diamond
Badge Color
SDUIAvatar.SDUIAvatar9
Properties
Property Value
ParentID admask
Shape square
Badge Color
SDUIAvatar.SDUIAvatar10
Properties
Property Value
ParentID admask
118 / 331
TailwindCSS WebApps using B4X
Property Value
Badge Color
SDUIAvatar.SDUIAvatar11
Properties
Property Value
ParentID admask
Shape parallelogram
Badge Color
SDUIAvatar.SDUIAvatar12
Properties
Property Value
ParentID admask
Shape parallelogram-2
Badge Color
SDUIAvatar.SDUIAvatar13
Properties
Property Value
ParentID admask
Shape parallelogram-3
Badge Color
SDUIAvatar.SDUIAvatar14
Properties
Property Value
ParentID admask
Shape parallelogram-4
Badge Color
SDUIAvatar.SDUIAvatar15
Properties
Property Value
ParentID admask
Shape star
Badge Color
SDUIAvatar.SDUIAvatar16
Properties
Property Value
ParentID admask
Shape star-2
Badge Color
SDUIAvatar.SDUIAvatar17
Properties
Property Value
ParentID admask
Shape triangle
Badge Color
119 / 331
TailwindCSS WebApps using B4X
SDUIAvatar.SDUIAvatar18
Properties
Property Value
ParentID admask
Shape triangle-2
Badge Color
SDUIAvatar.SDUIAvatar19
Properties
Property Value
ParentID admask
Shape triangle-3
Badge Color
SDUIAvatar.SDUIAvatar20
Properties
Property Value
ParentID admask
Shape triangle-4
Badge Color
Menus
Menu is used to display a list of links vertically or horizontally.
120 / 331
TailwindCSS WebApps using B4X
121 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* admenu
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIMenu.SDUIMenu1
Properties
Property Value
ParentID admenu
Menu Vertical true
Width 52
Rounded Box true
Shadow true
Modal
Modal is used to show a dialog or a box when you click a button.
122 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* admodal
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIModal.SDUIModal1
Properties
Property Value
ParentID admodal
Message (HTML) <p>This is a message</p>
Login Modal
The Login Modal example, provides us with details how this modal was created via code.
123 / 331
TailwindCSS WebApps using B4X
In BuildPage, these components are then created. The modal has a Form internally that we will place
components inside of. In this form we create the grid of 2 rows each spanning 12 columns. We then add
input components inside the form.
When the Ok / Yes and Cancel / No buttons a clicked, we want to process some events. In this case we
validate what has been entered by the user. We can then save this content to a db or use it for verifying
the user in this case.
124 / 331
TailwindCSS WebApps using B4X
When No is clicked, just hide the modal. As the password has a toggle eye, when this is clicked, we want
to toggle the input type between password and input.
There are examples included with source code that dive deeper into the use of modals with other
components like tables etc.
NavBar
Navbar is used to show a navigation bar on the top of the page.
Abstract Designer
125 / 331
TailwindCSS WebApps using B4X
SDUIPage.page
Properties
Property Value
Page Name* adnavbar
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUINavBar.SDUINavBar1
Properties
Property Value
ParentID adnavbar
Hamburger On Small Only false
Logo Width
Logo Height
Has Menu Button false
Bg Color blue
Bg Color Intensity 500
Text Color white
Rounded Box true
SDUIAvatar.SDUIAvatar1
Properties
Property Value
ParentID SDUINavBar1
Shape squircle
Status online
Badge Color
Shadow true
Margins a=?; x=2; y=?; t=?; b=?; l=?; r=?
SDUIButton.SDUIButton1
Properties
Property Value
ParentID SDUINavBar1
Caption
Button Type button-icon
Shape circle
Variant secondary
Icon fa-solid fa-car
Badge 2
Badge Color success
Badge Visible true
Size md
Shadow true
126 / 331
TailwindCSS WebApps using B4X
Options Card
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adoptionscard
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIOptionsCard.SDUIOptionsCard1
Properties
Property Value
ParentID adoptionscard
Rounded Box true
Shadow true
Phone
Phone mockup shows a mockup of an iPhone.
127 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adphone
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIMockupPhone.SDUIMockupPhone1
Properties
Property Value
ParentID adphone
Caption My Phone
Border Color primary
Progress
Progress bar can be used to show the progress of a task or to show the passing of time.
128 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adprogress
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIProgress.SDUIProgress1
Properties
Property Value
ParentID adprogress
Size md
SDUIProgress.SDUIProgress2
Properties
Property Value
ParentID adprogress
Size md
Value 20
Color secondary
SDUIProgress.SDUIProgress3
Properties
Property Value
ParentID adprogress
Size md
Value 30
Color nuetral
SDUIProgress.SDUIProgress4
Properties
Property Value
ParentID adprogress
Size md
Value 30
Color warning
Indeterminate true
SDUIProgress.SDUIProgress5
129 / 331
TailwindCSS WebApps using B4X
Properties
Property Value
ParentID adprogress
Type input-group
Size md
Value 78
Color info
SDUIProgress.SDUIProgress6
Properties
Property Value
ParentID adprogress
Type input-group
Size lg
Value 78
Color info
Bg Color transparent
Radial Progress
Radial Progress can be used to show the progress of a task or to show the passing of time.
130 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adradial
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIRadialProgress.SDUIRadialProgress1
Properties
Property Value
ParentID adradial
Value 70
Text Color secondary
Size 12rem
Thickness 2rem
SDUIRadialProgress.SDUIRadialProgress2
Properties
Property Value
ParentID adradial
Value
Size 12rem
Thickness 2px
Indeterminate true
131 / 331
TailwindCSS WebApps using B4X
Property Value
Interval 100
SDUIRadialProgress.SDUIRadialProgress3
Properties
Property Value
ParentID adradial
Value 0
SDUIRadialProgress.SDUIRadialProgress4
Properties
Property Value
ParentID adradial
Value 20
SDUIRadialProgress.SDUIRadialProgress5
Properties
Property Value
ParentID adradial
Value 60
SDUIRadialProgress.SDUIRadialProgress6
Properties
Property Value
ParentID adradial
Value 80
SDUIRadialProgress.SDUIRadialProgress7
Properties
Property Value
ParentID adradial
Value 100
SDUIRadialProgress.SDUIRadialProgress8
Properties
Property Value
ParentID adradial
Value 70
Text Color primary
SDUIRadialProgress.SDUIRadialProgress9
Properties
Property Value
ParentID adradial
Value 70
Text Color primary
Text Color Intensity content
Bg Color primary
Border 4
Border Color primary
132 / 331
TailwindCSS WebApps using B4X
Radio
Radio buttons allow the user to select one option from a set.
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adradiogroup
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIRadioGroup.SDUIRadioGroup1
Properties
Property Value
ParentID adradiogroup
Caption Software Package
Raw Key Values b4a:basic4android; b4i:basic4iOs; b4j:basic4java;
b4r:basic4arduino
Size lg
133 / 331
TailwindCSS WebApps using B4X
SDUIRadioGroup.SDUIRadioGroup2
Properties
Property Value
ParentID adradiogroup
Caption Software Package
Raw Key Values b4a:basic4android; b4i:basic4iOs; b4j:basic4java;
b4r:basic4arduino
Size md
Color secondary
Range
Range slider is used to select a value by sliding a handle.
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adrange
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIRange.SDUIRange1
Properties
Property Value
ParentID adrange
Size md
SDUIRange.SDUIRange2
Properties
Property Value
ParentID adrange
Input Type input-group
Size md
134 / 331
TailwindCSS WebApps using B4X
Property Value
Color secondary
Value 30
Rating
Rating is a set of radio buttons that allow the user to rate something.
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adrating
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIRating.SDUIRating1
Properties
Property Value
ParentID adrating
Size md
Bordered true
SDUIRating.SDUIRating2
Properties
135 / 331
TailwindCSS WebApps using B4X
Property Value
ParentID adrating
Input Type input-group
Mask heart
Size md
Bg Color blue
Bordered true
SDUIRating.SDUIRating3
Properties
Property Value
ParentID adrating
Input Type input-group
Mask squircle
Size md
Bg Color red
Bordered true
Stack
Stack visually puts elements on top of each other.
136 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adstack
137 / 331
TailwindCSS WebApps using B4X
Property Value
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIDiv.SDUIDiv1
Properties
Property Value
ParentID adstack
SDUIDiv.SDUIDiv2
Properties
Property Value
ParentID SDUIDiv1
Caption 1
Grid true
Bg Color primary
Text Color primary
Text Color Intensity content
Rounded true
Place Content center
Width 32
Height 20
SDUIDiv.SDUIDiv3
Properties
Property Value
ParentID SDUIDiv1
Caption 2
Grid true
Bg Color accent
Text Color accent
Text Color Intensity content
Rounded true
Place Content center
Width 32
Height 20
SDUIDiv.SDUIDiv4
Properties
Property Value
ParentID SDUIDiv1
Caption 3
Grid true
Bg Color secondary
Text Color secondary
Text Color Intensity content
Rounded true
Place Content center
Width 32
Height 20
138 / 331
TailwindCSS WebApps using B4X
SDUIDiv.SDUIDiv5
Properties
Property Value
ParentID adstack
Stack true
SDUIDiv.SDUIDiv6
Properties
Property Value
ParentID SDUIDiv5
Caption 1
Grid true
Bg Color primary
Text Color primary
Text Color Intensity content
Rounded true
Place Content center
Width 32
Height 20
SDUIDiv.SDUIDiv7
Properties
Property Value
ParentID SDUIDiv5
Caption 2
Grid true
Bg Color accent
Text Color accent
Text Color Intensity content
Rounded true
Place Content center
Width 32
Height 20
SDUIDiv.SDUIDiv8
Properties
Property Value
ParentID SDUIDiv5
Caption 3
Grid true
Bg Color secondary
Text Color secondary
Text Color Intensity content
Rounded true
Place Content center
Width 32
Height 20
SDUIDiv.SDUIDiv9
139 / 331
TailwindCSS WebApps using B4X
Properties
Property Value
ParentID adstack
Stack true
SDUIImage.SDUIImage1
Properties
Property Value
ParentID SDUIDiv9
Source ./assets/nature_03.jpg
Shape rounded
Width 112px
Height 112px
SDUIImage.SDUIImage2
Properties
Property Value
ParentID SDUIDiv9
Source ./assets/nature_03.jpg
Shape rounded
Width 112px
Height 112px
SDUIImage.SDUIImage3
Properties
Property Value
ParentID SDUIDiv9
Source ./assets/nature_03.jpg
Shape rounded
Width 112px
Height 112px
SDUIDiv.SDUIDiv10
Properties
Property Value
ParentID adstack
Stack true
SDUICard.SDUICard1
Properties
Property Value
ParentID SDUIDiv10
Image Url
Title Notification 1
Description You have 3 messages
Height
Width
Bg Color primary
140 / 331
TailwindCSS WebApps using B4X
Property Value
Bg Color Intensity
Text Color primary
Text Color Intensity content
SDUICard.SDUICard2
Properties
Property Value
ParentID SDUIDiv10
Image Url
Title Notification 2
Description You have 3 messages
Height
Width
Bg Color primary
Bg Color Intensity
Text Color primary
Text Color Intensity content
SDUICard.SDUICard3
Properties
Property Value
ParentID SDUIDiv10
Image Url
Title Notification 3
Description You have 3 messages
Height
Width
Bg Color primary
Bg Color Intensity
Text Color primary
Text Color Intensity content
Stat
Stat is used to show numbers and data in a box.
141 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adstat
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIStats.SDUIStats1
Properties
142 / 331
TailwindCSS WebApps using B4X
Property Value
ParentID adstat
Vertical On Small Only true
SDUIStats.SDUIStats2
Properties
Property Value
ParentID adstat
Vertical On Small Only true
Bg Color primary
Text Color primary
Text Color Intensity content
Select
Select is used to pick a value from a list of options.
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adselect
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
143 / 331
TailwindCSS WebApps using B4X
SDUISelect.SDUISelect1
Properties
Property Value
ParentID adselect
Size md
Raw Key Values b4a:basic4android; b4i:basic4iOs; b4j:basic4java;
b4r:basic4arduino
SDUISelect.SDUISelect2
Properties
Property Value
ParentID adselect
Select Type input-group
Size md
Caption Progress 2
Raw Key Values b4a:basic4android;?
b4i:basic4iOs;?
b4j:basic4java;?
b4r:basic4arduino
Prefix A
Suffix B
Auto Focus true
Color secondary
SDUISelect.SDUISelect3
Properties
Property Value
ParentID adselect
Select Type input-group
Size md
Caption Progress 2
Value b4j
Raw Key Values b4a:basic4android;?
b4i:basic4iOs;?
b4j:basic4java;?
b4r:basic4arduino
Prefix A
Append Icon fa-solid fa-cart-plus
Auto Focus true
Color error
Hint Select a product
Required true
Steps
Steps can be used to show a list of steps in a process.
144 / 331
TailwindCSS WebApps using B4X
145 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adsteps
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUISteps.SDUISteps1
Properties
Property Value
ParentID adsteps
SDUISteps.SDUISteps2
Properties
Property Value
ParentID adsteps
Step Type vertical
Color secondary
One can also create other layouts and load them inside each of the step. Each component in a step should
have a unique name.
banano.LoadLayout(SDUISteps1.Panel(1).Here, "tab1child")
banano.LoadLayout(SDUISteps1.Panel(2).Here, "tab2child")
banano.LoadLayout(SDUISteps1.Panel(3).Here, "tab3child")
Swap
Swap allows you to toggle the visibility of two elements using a checkbox or a class name.
146 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adswap
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUISwap.SDUISwap1
Properties
Property Value
ParentID adswap
Size md
SDUISwap.SDUISwap2
Properties
Property Value
ParentID adswap
Type icon
Off Value fa-solid fa-moon
On Value fa-regular fa-sun
Size 4
Effect flip
147 / 331
TailwindCSS WebApps using B4X
Tabs
Tabs can be used to show a list of links in a tabbed format.
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adtabs
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUITabs.SDUITabs1
Properties
148 / 331
TailwindCSS WebApps using B4X
Property Value
ParentID adtabs
Size lg
SDUITabs.SDUITabs2
Properties
Property Value
ParentID adtabs
Size lg
Type bordered
SDUITabs.SDUITabs3
Properties
Property Value
ParentID adtabs
Size lg
Type lifted
SDUITabs.SDUITabs4
Properties
Property Value
ParentID adtabs
Size lg
Type boxed
One can also ceate othe layouts and load then in each tab with code like this:
149 / 331
TailwindCSS WebApps using B4X
Typography
150 / 331
TailwindCSS WebApps using B4X
Abstract Designer
TextBox
Text Input is a simple input field.
151 / 331
TailwindCSS WebApps using B4X
152 / 331
TailwindCSS WebApps using B4X
153 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adtextbox
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUITextBox.SDUITextBox1
Properties
Property Value
ParentID adtextbox
Size md
Color primary
Value 3
Bordered false
154 / 331
TailwindCSS WebApps using B4X
SDUITextBox.SDUITextBox2
Properties
Property Value
ParentID adtextbox
Input Type input-group
Size md
Color primary
Value 3
Bordered false
SDUITextBox.SDUITextBox3
Properties
Property Value
ParentID adtextbox
Input Type input-group
Size md
Color primary
Value 3
Prefix P
Suffix S
SDUITextBox.SDUITextBox4
Properties
Property Value
ParentID adtextbox
Input Type input-group
Size md
Color primary
Caption First Name
Place Holder Enter first name here
Prepend Icon fa-solid fa-volume-xmark
Append Icon fa-solid fa-volume-high
SDUITextBox.SDUITextBox5
Properties
Property Value
ParentID adtextbox
Input Type password
Size md
Color primary
Caption Password
Show Eyes true
Prepend Icon fa-solid fa-lock
SDUITextBox.SDUITextBox6
Properties
Property Value
ParentID adtextbox
Input Type telephone
Size md
Color secondary
155 / 331
TailwindCSS WebApps using B4X
Property Value
Caption Telephone
Prepend Icon fa-solid fa-mobile
SDUITextBox.SDUITextBox7
Properties
Property Value
ParentID adtextbox
Input Type number
Size md
Color secondary
Caption Weight
SDUITextBox.SDUITextBox8
Properties
Property Value
ParentID adtextbox
Input Type dialer
Size md
Color secondary
Caption Dialer
Value 1
Max Value 100
Step Value 5
TextArea
Textarea allows users to enter text in multiple lines.
156 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adtextarea
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUITextArea.SDUITextArea1
Properties
Property Value
ParentID adtextarea
Caption Text Area 1
Value my text area
SDUITextArea.SDUITextArea2
Properties
Property Value
ParentID adtextarea
Input Type input-group
Caption Text Area 1
Color nuetral
157 / 331
TailwindCSS WebApps using B4X
Property Value
Value my text area
SDUITextArea.SDUITextArea3
Properties
Property Value
ParentID adtextarea
Input Type input-group
Caption Text Area 1
Color nuetral
Value my text area
Prefix P
Suffix S
SDUITextArea.SDUITextArea4
Properties
Property Value
ParentID adtextarea
Input Type input-group
Caption Text Area 1
Color success
Value my text area
Prepend Icon fa-brands fa-stack-overflow
Append Icon fa-brands fa-github
Time Lines
158 / 331
TailwindCSS WebApps using B4X
Abstract Designer
Toast
Toast is a wrapper to stack elements, positioned on the corner of page.
You can also make an toast be timed. For example, setting t1.TimeOut = 2000, will hide the toast after 2
seconds.
159 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adtoast
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIToast.SDUIToast1
Properties
Property Value
ParentID adtoast
SDUIToast.SDUIToast2
Properties
Property Value
ParentID adtoast
Color warning
At Center true
At Middle true
ToolTip
Tooltip can be used to show a message when hovering over an element.
160 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adtooltip
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUITooltip.SDUITooltip1
Properties
Property Value
ParentID adtooltip
Caption ToolTip 1
Position left
SDUITooltip.SDUITooltip2
Properties
Property Value
ParentID adtooltip
Caption ToolTip 1
Color secondary
Position right
SDUIButton.SDUIButton1
Properties
Property Value
ParentID SDUITooltip1
SDUIButton.SDUIButton2
Properties
Property Value
ParentID SDUITooltip2
Shape rounded
Icon
Table
Table can be used to show a list of data in a table format.
For the examples below, this is the structure of the records we will use.
161 / 331
TailwindCSS WebApps using B4X
Table1
Table2
162 / 331
TailwindCSS WebApps using B4X
Table3
Table4
163 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adtable
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUITable.SDUITable1
Properties
Property Value
ParentID adtable
Title Test Table
Is Normal true
Is Zebra true
Badges Size sm
Button Size sm
164 / 331
TailwindCSS WebApps using B4X
Property Value
Hover true
Select All true
Has Search true
Has Delete All true
Has Edit true
Has Clone true
Has Delete true
Has Upload true
Has Menu true
Toggle
Toggle is a checkbox that is styled to look like a switch button.
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adtoggle
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIToggle.SDUIToggle1
165 / 331
TailwindCSS WebApps using B4X
Properties
Property Value
ParentID adtoggle
Size md
SDUIToggle.SDUIToggle2
Properties
Property Value
ParentID adtoggle
Input Type input-group
Color secondary
Size md
SDUIToggle.SDUIToggle3
Properties
Property Value
ParentID adtoggle
Input Type input-group
Color success
Size md
SDUIToggle.SDUIToggle4
Properties
Property Value
ParentID adtoggle
Input Type input-group
Color warning
Size md
SDUIToggle.SDUIToggle5
Properties
Property Value
ParentID adtoggle
Input Type input-group
Position right
Color warning
Size md
Checked true
Bg Color red
Bg Color Intensity 700
Checked Bg Color green
Checked Bg Color Intensity 700
166 / 331
TailwindCSS WebApps using B4X
Video
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* advideo
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIVideo.SDUIVideo1
Properties
Property Value
ParentID advideo
Auto Play true
Webm Url ./assets/video2.webm
Window
Window mockup shows a box that looks like an operating system window.
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* admockwindow
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
167 / 331
TailwindCSS WebApps using B4X
SDUIMockupWindow.SDUIMockupWindow1
Properties
Property Value
ParentID admockwindow
Caption This is a Mock Window
Border Color primary
PlugIns
QRCode
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adqrcode
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIQRCode.SDUIQRCode1
Properties
Property Value
ParentID adqrcode
Text https://sithasodaisyui.netlify.app
168 / 331
TailwindCSS WebApps using B4X
QRCode/Barcode Scanner
169 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adqrcodescanner
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIBarCodeReader.SDUIBarCodeReader1
Properties
Property Value
ParentID adqrcodescanner
Width 500px
170 / 331
TailwindCSS WebApps using B4X
WebCam
171 / 331
TailwindCSS WebApps using B4X
Abstract Designer
One can also add the WebCam using the abstract designer.
SDUIPage.page
Properties
Property Value
Page Name* adcam
Flex Wrap false
Gap 5
Grid true
Grid Cols 1
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIGrid.SDUIGrid1
Properties
Property Value
ParentID adcam
Grid true
Align Content evenly
Gap 6
Grid Cols 1
Device Grid Cols xs=?; sm=?; md=2; lg=2; xl=?
SDUIWebcam.SDUIWebcam1
Properties
Property Value
ParentID SDUIGrid1
SDUIImage.SDUIImage1
Properties
Property Value
ParentID SDUIGrid1
Shape squircle
Width 200px
Height 200px
SDUIGrid.SDUIGrid2
Properties
172 / 331
TailwindCSS WebApps using B4X
Property Value
ParentID adcam
Grid true
Align Content evenly
Gap 6
Grid Cols 1
Device Grid Cols xs=?; sm=?; md=2; lg=2; xl=?
SDUIButton.btnStart
Properties
Property Value
ParentID SDUIGrid2
Caption Start Camera
SDUIButton.btnTakePhoto
Properties
Property Value
ParentID SDUIGrid2
Caption Take Photo
Events
173 / 331
TailwindCSS WebApps using B4X
Sweet Alert
174 / 331
TailwindCSS WebApps using B4X
175 / 331
TailwindCSS WebApps using B4X
Lottie Player
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adlottieplayer
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUILottiePlayer.SDUILottiePlayer1
Properties
Property Value
ParentID adlottieplayer
Json URL ./assets/liftoff.json
Loop true
176 / 331
TailwindCSS WebApps using B4X
FlatPick DateTimePicker
177 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* addatepicker
Gap 5
178 / 331
TailwindCSS WebApps using B4X
Property Value
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUITextBox.SDUITextBox1
Properties
Property Value
ParentID addatepicker
Input Type date-picker
Size md
Color primary
Caption Date Employed
Bordered false
Date Time Format Y-m-d
SDUITextBox.SDUITextBox2
Properties
Property Value
ParentID addatepicker
Input Type date-time-picker
Size md
Color primary
Caption Date & Time of Leave
Bordered false
Date Time Format Y-m-d H:i
SDUITextBox.SDUITextBox3
Properties
Property Value
ParentID addatepicker
Input Type time-picker
Size md
Color primary
Caption Time Only
Bordered false
Date Time Format H:i
DP No Calendar true
SDUITextBox.SDUITextBox4
Properties
Property Value
ParentID addatepicker
Input Type date-picker
Size md
Color primary
Caption Date range
Bordered false
Date Time Format Y-m-d
DP Mode range
DP Week Numbers true
SDUITextBox.SDUITextBox5
179 / 331
TailwindCSS WebApps using B4X
Properties
Property Value
ParentID addatepicker
Input Type date-picker
Size md
Color primary
Caption Date Multiple
Bordered false
Date Time Format Y-m-d
DP Alt Format F j, Y
DP Alt Input true
DP Mode multiple
180 / 331
TailwindCSS WebApps using B4X
Roll DateTimePicker
181 / 331
TailwindCSS WebApps using B4X
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adrolldate
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
182 / 331
TailwindCSS WebApps using B4X
SDUITextBox.SDUITextBox1
Properties
Property Value
ParentID adrolldate
Input Type roll-date
Size md
Color primary
Caption Date of Birth
Bordered false
SDUITextBox.SDUITextBox2
Properties
Property Value
ParentID adrolldate
Input Type roll-date-time
Size md
Color primary
Caption Date & Time of Entry
Bordered false
SDUITextBox.SDUITextBox3
Properties
Property Value
ParentID adrolldate
Input Type roll-time
Size md
Color primary
Caption Time In
RollDate Step 5
Bordered false
FullCalendar
183 / 331
TailwindCSS WebApps using B4X
This component can be added by code and also via the abstract designer. It raises an _eventClick event
which receives the event being clicked on the calendar. To add events to the calendar call the .AddEvent
method.
More details about the FullCalendar are available from its web site, https://fullcalendar.io/
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adfullcalendar
Flex Wrap false
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIFullCalendar.calendar1
Properties
Property Value
ParentID adfullcalendar
PropertyTable
A Property Table acts like a property bag, where one can define its schema and use it to display and solicit
input from users. The example below shows a property bag that is placed using the abstract designer and
then its schema designed. This component is based on the SDUITable.
184 / 331
TailwindCSS WebApps using B4X
One is able to add components to the popety table. Above we have added text-boxes, check-boxes,
ranges etc.
185 / 331
TailwindCSS WebApps using B4X
To get the entered contents of the property bag, we execute .GetData, the opposite of this is .SetData to
set the contents of the properties of the bag. We have also added an action button at the bottom of the
bag, which when clicked gets the contents of the property bag.
We can also trap changes to the property bag when any of the input elements change value with.
Abstract Designer
Let's look at the layout definition and see each component and which properties were changed:
SDUIPage.page
Properties
Property Value
Page Name* adpropertytable
Flex Wrap false
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIDiv.SDUIDiv1
Properties
Property Value
ParentID adpropertytable
Gap 6
Grid true
Grid Cols 2
SDUITable.SDUITable1
Properties
Property Value
ParentID SDUIDiv1
Table Type property
Title property table
Pagination false
Is Compact true
Component Size md
Has Addnew false
Has Refresh false
Has Back false
SDUIMockupCode.SDUIMockupCode1
Properties
186 / 331
TailwindCSS WebApps using B4X
Property Value
ParentID SDUIDiv1
Caption Property Table
SignaturePad
This signature is placed in the abstract designer where people can sign on. We then add methods to clear
and then download the contents as an image. This image can be saved as a base64 string or uploaded to a
server.
Abstract Designer
SDUIPage.page
Properties
Property Value
Page Name* adsignature
Flex Col true
Flex Wrap false
Gap 5
Paddings a=5; x=?; y=?; t=?; b=?; l=?; r=?
SDUIRow.SDUIRow2
Properties
Property Value
ParentID adsignature
SDUICol.SDUICol3
Properties
Property Value
ParentID SDUIRow2
Sizes xs=?; sm=12; md=6; lg=6; xl=6
SDUISignaturePad.SDUISignaturePad1
Properties
Property Value
ParentID SDUICol3
SDUIRow.SDUIRow1
Properties
187 / 331
TailwindCSS WebApps using B4X
Property Value
ParentID adsignature
SDUICol.SDUICol1
Properties
Property Value
ParentID SDUIRow1
Sizes xs=?; sm=12; md=6; lg=?; xl=?
SDUICol.SDUICol2
Properties
Property Value
ParentID SDUIRow1
Sizes xs=?; sm=12; md=6; lg=?; xl=?
SDUIButton.btnSave
Properties
Property Value
ParentID SDUICol2
Caption Save
SDUIButton.btnClear
Properties
Property Value
ParentID SDUICol1
Caption Clear
DocxTemplator
The DocxTemplator is a class that helps you create reports in MS Word.
You create your MS Word template and then give it fields that will be replaced. Below is an example of a
template. We will replace all the words inside { } in this template.
For the tables, the contents of properties, events and methods are lists / array. Each object in the list is an
object / map with the named fields.
188 / 331
TailwindCSS WebApps using B4X
To indicate that the records to be displayed are a list, we enclose the list name inside {# [listname]} {/}
{component}
Properties
Property Type Default Value Options Description
{#properties}{Displa {FieldT {DefaultValue} {List} {Description}{/}
yName} ype}
Events
Event Signature
{#events}{name}{/}
We then build our document feeding it the template file name and output file name.
API
With the API, one is able to understand the inner workings of each of the components. We look at:
1. Properties - these are the designer properties used in the Abstract Designer.
2. Events - these are events available for that components
3. Methods - these are methods available for that component, including getters and setters.
Alert
SDUIALERT
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Alert Type String normal big|empty|normal|tit Alert Type
le
Variant String info none|error|info|succ Alert Variant
ess|warning
Icon Name String fa-solid fa-bell Icon Name
Icon Color String blue Icon Color
Bg Color String Background Color
Bg Color Intensity String Background Color Intensity
189 / 331
TailwindCSS WebApps using B4X
Events
Event Signature
Click (e As BANanoEvent)
Action (item As String)
190 / 331
TailwindCSS WebApps using B4X
Art Board
SDUIARTBOARD
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Phone String 1 1|2|3|4|5|6 Phone
Demo Boolea False Demo
n
Horizontal Boolea False Horizontal
n
Visible Boolea True If visible.
n
Margins String a=?; x=?; y=?; t=?; Margins A-X-Y-T-B-L-R
b=?; l=?; r=?
Paddings String a=?; x=?; y=?; t=?; Paddings A-X-Y-T-B-L-R
b=?; l=?; r=?
Classes String Classes added to the
HTML tag.
Styles String Styles added to the HTML
tag. Must be a json String-
use =
Attributes String Attributes added to the
HTML tag. Must be a json
String- use =
Events
191 / 331
TailwindCSS WebApps using B4X
Avatar
SDUIAVATAR
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Size String 12 Avatar Size
Image Url String ./assets/daisywom Url For Image
an1.jpg
Shape String circle none|circle|rounde Shape
d|squircle|heart|he
xagon|hexagon-
2|decagon|pentago
n|diamond|square|
parallelogram|paral
lelogram-
2|parallelogram-
3|parallelogram-
4|star|star-
2|triangle|triangle-
2|triangle-
3|triangle-4|half-
1|half-2
Status String none none|offline|online If Online Or Offline
Online Color String Online Color
Avatar Group Boolea False If Avatar Group
n
Badge Caption String Badge Value
Badge Color String none accent|error|ghost Badge Color
|info|primary|seco
ndary|success|war
ning|none
Badge Outline Boolea False Badge Outline
n
Badge Visible Boolea False If Badge Visible
n
Place Holder String Placeholder
Text Size String Text Size
192 / 331
TailwindCSS WebApps using B4X
Events
Click (e As BANanoEvent)
193 / 331
TailwindCSS WebApps using B4X
Badge
SDUIBADGE
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Variant String accent|error|ghost Variant
|info|none|primary
|secondary|success
|warning
Caption String Caption
Outline Boolea False Outlined
n
Shadow Boolea False Elevation
n
Size String none lg|md|sm|xs|none Size
No Icons Boolea True Hide Left & Right Icons
n
Bg Color String Background Color
Bg Color Intensity String Background Color
Intensity
Left Icon Name String Left Icon Name
Right Icon Name String Right Icon Name
Text Color String Text Color
Text Color Intensity String Text Color Intensity
194 / 331
TailwindCSS WebApps using B4X
Events
Click (e As BANanoEvent)
195 / 331
TailwindCSS WebApps using B4X
Events
ScanFailure (error As Object)
ScanSuccess (decodedText As String, decodedResult As Map)
196 / 331
TailwindCSS WebApps using B4X
Bottom Nav
SDUIBOTTOMNAV
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Bg Color String Background Color
Bg Color Intensity String Background Color
Intensity
Size String none lg|md|sm|xs|none Size
Text Color String Text Color
Text Color Intensity String Text Color Intensity
Visible Boolea True If visible.
n
Margins String a=?; x=?; y=?; t=?; Margins A-X-Y-T-B-L-R
b=?; l=?; r=?
Paddings String a=?; x=?; y=?; t=?; Paddings A-X-Y-T-B-L-R
b=?; l=?; r=?
Classes String Classes added to the
HTML tag.
Styles String Styles added to the HTML
tag. Must be a json String-
use =
Attributes String Attributes added to the
HTML tag. Must be a json
String- use =
Events
Click (item As String)
197 / 331
TailwindCSS WebApps using B4X
Bread Crumbs
SDUIBREADCRUMBS
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
198 / 331
TailwindCSS WebApps using B4X
Events
199 / 331
TailwindCSS WebApps using B4X
Button
SDUIBUTTON
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Caption String Button Caption Of The Button
Button Type String button badge|button|butt Type Of Button Tag
on-
icon|fab|indicator|
minus-plus|normal
Shape String default circle|default|squar Shape Of The Button
e|rounded
Variant String neutral none|accent|error| Button Color Type
ghost|glass|info|lin
k|neutral|primary|
secondary|success|
warning
Active Boolea False If Active
n
Bg Color String Background Color
Bg Color Intensity String Background Color
Intensity
Text Color String Text Color
Text Color Intensity String Text Color Intensity
Disabled Boolea False If Disabled
n
Icon String fa-solid fa-book Icon For Button Icon
Right Icon String Right Icon
Badge String 5 Badge Value
Badge Color String secondary accent|error|ghost Badge Color
|info|primary|seco
ndary|success|war
ning
Badge Outline Boolea False Badge Outline
n
Badge Visible Boolea False If Badge Visible
n
Loading Boolea False If Loading
n
No Animation Boolea False Whether To Show
n Animation
No Icons Boolea False Remove All Icon
n Placeholders
Normal Case Boolea False Caption Is Normal Case
n
Outline Boolea False If Outlined
n
Size String none lg|md|sm|xs|none Button Size
Shadow Boolea False Elevation
200 / 331
TailwindCSS WebApps using B4X
Events
Click (e As BANanoEvent)Minus_Click (e As BANanoEvent)Plus_Click (e As BANanoEvent)
201 / 331
TailwindCSS WebApps using B4X
202 / 331
TailwindCSS WebApps using B4X
Button Group
SDUIBUTTONGROUP
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Alignment String horizontal horizontal|vertical
Size String none lg|md|sm|xs|none Size
Visible Boolea True If visible.
n
Margins String a=?; x=?; y=?; t=?; Margins A-X-Y-T-B-L-R
b=?; l=?; r=?
Paddings String a=?; x=?; y=?; t=?; Paddings A-X-Y-T-B-L-R
b=?; l=?; r=?
Classes String Classes added to the
HTML tag.
Styles String Styles added to the HTML
tag. Must be a json String-
use =
Attributes String Attributes added to the
HTML tag. Must be a json
String- use =
Events
203 / 331
TailwindCSS WebApps using B4X
Card
SDUICARD
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Card Type String default default|empty|for
m
Image Url String ./assets/img_2.jpg Image Url
204 / 331
TailwindCSS WebApps using B4X
205 / 331
TailwindCSS WebApps using B4X
Events
Click (e As BANanoEvent)Action (item As String)
206 / 331
TailwindCSS WebApps using B4X
Carousel
SDUICAROUSEL
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Height String 500px Height
Width String 500px Width
Item Alignment String center center|end Item Alignment
Rounded Box Boolea False Rounded Box
n
Shadow Boolea True Shadow
n
Vertical Boolea False Vertical
n
Visible Boolea True If visible.
n
Margins String a=?; x=?; y=?; t=?; Margins A-X-Y-T-B-L-R
b=?; l=?; r=?
Paddings String a=?; x=?; y=?; t=?; Paddings A-X-Y-T-B-L-R
b=?; l=?; r=?
Classes String Classes added to the
HTML tag.
207 / 331
TailwindCSS WebApps using B4X
Events
ChartKick
SDUICHARTKICK
Properties
Property Type Default Value Options Description
ParentID String The id of the element to
place this into
Title String My Chart Title
XTitle String X XTitle
YTitle String Y YTitle
Hidden Boolea False Hidden
n
208 / 331
TailwindCSS WebApps using B4X
209 / 331
TailwindCSS WebApps using B4X
Events
Click (e As BANanoEvent)
210 / 331
TailwindCSS WebApps using B4X
211 / 331
TailwindCSS WebApps using B4X
Chat
SDUICHAT
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Show Image Boolea True Show Image
n
Image Shape String circle none|circle|rounde Image Shape
d|squircle|heart|he
xagon|hexagon-
2|decagon|pentago
n|diamond|square|
parallelogram|paral
lelogram-
2|parallelogram-
3|parallelogram-
4|star|star-
2|triangle|triangle-
2|triangle-
3|triangle-4|half-
1|half-2
Image Size String 10 Image Size
Show Header Boolea True Show Header
n
Show Footer Boolea True Show Footer
n
Text Color String Text Color
Text Color Intensity String Text Color Intensity
Bg Color String Bg Color
Bg Color Intensity String Bg Color Intensity
Height String Height
Width String full Width
Rounded Box Boolea False Rounded Box
n
Shadow String Shadow
Visible Boolea True If visible.
n
Margins String a=?; x=?; y=?; t=?; Margins A-X-Y-T-B-L-R
b=?; l=?; r=?
Paddings String a=?; x=?; y=?; t=?; Paddings A-X-Y-T-B-L-R
b=?; l=?; r=?
Classes String Classes added to the
HTML tag.
Styles String Styles added to the HTML
tag. Must be a json String-
use =
Attributes String Attributes added to the
HTML tag. Must be a json
String- use =
Events
212 / 331
TailwindCSS WebApps using B4X
Event Signature
213 / 331
TailwindCSS WebApps using B4X
Checkbox
SDUICHECKBOX
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Caption String CheckBox 1 Caption
Variant String neutral accent|error|ghost Variant
|info|none|nuetral
|primary|secondary
|success|warning
Checked Boolea False Checked
n
Check Mark Color String The color of the check
(Hex) mark (Hex)
Checked BG Color String Checked background Color
(Hex) (Hex)
Disabled Boolea False If Disabled
n
Placement String left left|right Placement Of The
Component
Read Only Boolea False Read Only
n
Size String none lg|md|sm|xs|none Size
Width String full Width
Indeterminate Boolea False Indeterminate
n
Auto Focus Boolea False Auto Focus
n
Text Color String Text Color
Text Color Intensity String Text Color Intensity
Visible Boolea True If visible.
n
Margins String a=?; x=?; y=?; t=?; Margins A-X-Y-T-B-L-R
b=?; l=?; r=?
Paddings String a=?; x=?; y=?; t=?; Paddings A-X-Y-T-B-L-R
b=?; l=?; r=?
Classes String Classes added to the
HTML tag.
214 / 331
TailwindCSS WebApps using B4X
Events
Change (Checked As Boolean)
215 / 331
TailwindCSS WebApps using B4X
Col
SDUICOL
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Caption String The caption of the
element
Sizes String xs=?; sm=?; md=?; Sizes xs=?; sm=12; md=?;
lg=?; xl=? lg=?; xl=?
Absolute Boolea False Absolute
n
Align Content String none around|baseline|be Align Content
tween|center|end|
evenly|none|start
Align Items String none baseline|center|en Align Items
d|none|start|stretc
h
Background Image String Background Image
Bg Color String Background Color
Bg Color Intensity String Background Color
Intensity
Border String Border Size
Border Color String Border Color
Border Color String Border Color Intensity
Intensity
Columns String Number Of Columns
Within An Element
Gap String Gap
Height String Height
Hover String Classes To Apply On Hover
Place Content String none around|baseline|be How Content Is Justified
tween|center|end| And Aligned At The Same
evenly|none|start| Time
stretch
Place Items String none baseline|center|en Place Items
d|none|start|stretc
h
Relative Boolea False Relative
n
Rounded String Rounded
Shadow String Shadow
Text Color String Text Color
Text Color Intensity String Text Color Intensity
Width String Width
Visible Boolea True If visible.
n
216 / 331
TailwindCSS WebApps using B4X
Events
Click (e As BANanoEvent)
217 / 331
TailwindCSS WebApps using B4X
Collapse Panels
SDUICOLLAPSEPANELS
Properties
Property Type Default Value Options Description
ReadMe Children String [name]_1_content The id of each panel
ParentID String The ParentID of this div
Titles String Panel 1; Panel 2; Panels Separated By ;
Panel 3
Plus Boolea False Use Plus And Not Arrow
n
Rounded Box Boolea True Rounded Box
n
Shadow Boolea True Shadow
n
Open Boolea True If Open.
n
Bg Color String Background Color
Bg Color Intensity String Background Color
Intensity
Text Color String Text Color
Text Color Intensity String Text Color Intensity
Visible Boolea True If visible.
n
Margins String a=?; x=?; y=?; t=?; Margins A-X-Y-T-B-L-R
b=?; l=?; r=?
Paddings String a=?; x=?; y=?; t=?; Paddings A-X-Y-T-B-L-R
b=?; l=?; r=?
Classes String Classes added to the
HTML tag.
Styles String Styles added to the HTML
tag. Must be a json String-
use =
Attributes String Attributes added to the
HTML tag. Must be a json
String- use =
Events
Change (pos As Int)
218 / 331
TailwindCSS WebApps using B4X
Div
SDUIDIV
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Caption String The caption of the element
HTML String RAW HTML. Overrides the
Caption property.
Container Boolea False Container
n
Mx Auto Boolea False Mx-auto
n
BackgroundImage String The background image of the
page
FullPage Boolea False w-full & h-full
n
Flex Boolea False Flex
n
Flex1 Boolea False Flex1
n
Flex Col Boolea False FlexCol
n
Flex None Boolea False FlexNone
n
Flex Row Boolea False FlexRow
n
Flex Grow Boolea False Flex Grow
n
219 / 331
TailwindCSS WebApps using B4X
220 / 331
TailwindCSS WebApps using B4X
Events
Event Signature
Click (e As BANanoEvent)KeyClick (item As string)
221 / 331
TailwindCSS WebApps using B4X
222 / 331
TailwindCSS WebApps using B4X
223 / 331
TailwindCSS WebApps using B4X
224 / 331
TailwindCSS WebApps using B4X
225 / 331
TailwindCSS WebApps using B4X
226 / 331
TailwindCSS WebApps using B4X
227 / 331
TailwindCSS WebApps using B4X
228 / 331
TailwindCSS WebApps using B4X
229 / 331
TailwindCSS WebApps using B4X
230 / 331
TailwindCSS WebApps using B4X
231 / 331
TailwindCSS WebApps using B4X
232 / 331
TailwindCSS WebApps using B4X
233 / 331
TailwindCSS WebApps using B4X
234 / 331
TailwindCSS WebApps using B4X
235 / 331
TailwindCSS WebApps using B4X
236 / 331
TailwindCSS WebApps using B4X
237 / 331
TailwindCSS WebApps using B4X
238 / 331
TailwindCSS WebApps using B4X
239 / 331
TailwindCSS WebApps using B4X
240 / 331
TailwindCSS WebApps using B4X
241 / 331
TailwindCSS WebApps using B4X
242 / 331
TailwindCSS WebApps using B4X
243 / 331
TailwindCSS WebApps using B4X
Divider
SDUIDIVIDER
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Alignment String none horizontal|none|ve Alignment
rtical
Caption String Caption
Bg Color String Background Color
Bg Color Intensity String Background Color
Intensity
Text Color String Text Color
Text Color Intensity String Text Color Intensity
Visible Boolea True If visible.
n
Margins String a=?; x=?; y=?; t=?; Margins A-X-Y-T-B-L-R
b=?; l=?; r=?
Paddings String a=?; x=?; y=?; t=?; Paddings A-X-Y-T-B-L-R
244 / 331
TailwindCSS WebApps using B4X
Events
Drawer
SDUIDRAWER
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Clipped Left Boolea False Clipped Left
n
Height String screen Height
Width String 80 Width
Has Navbar Boolea False Has Navbar
n
Has Bottom Nav Boolea False Has Bottom Navigation
n
Has Footer Boolea False Has Footer
n
245 / 331
TailwindCSS WebApps using B4X
Events
Menu_Click (item As String)
246 / 331
TailwindCSS WebApps using B4X
Drop Down
SDUIDROPDOWN
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Activator String button avatar|button|icon Dropdown Activator
Button Caption String Button Caption (if
Activator Is Button)
Icon Name String Icon Name (if Activator Is
Icon)
Button/Avatar/Icon String 20 Button/Avatar/Icon Size
Size
Avatar Url String Avatar Image Url
Avatar Status String none none|offline|online
Badge Color String Badge Color
Badge Value String Badge Value
Badge Visible Boolea False Badge Visible
n
Position String default default|end|left|rig
ht|top
Bg Color String Background Color
Bg Color Intensity String Background Color
Intensity
Highlight Active Boolea False Highlight Active Item
n
Hover Boolea False Hover To Open
n
Item Color String Background Color Of Items
Item Color Intensity String Item Color Intensity
Menu Compact Boolea False Menu Compact
247 / 331
TailwindCSS WebApps using B4X
Events
Click (item As String)
248 / 331
TailwindCSS WebApps using B4X
249 / 331
TailwindCSS WebApps using B4X
DocxTemplator
SDUIDOCXTEMPLATOR
Events
Finished
File Input
SDUIFILEINPUT
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Type String default camera|default|inp
ut-group|progress
Size String none lg|md|sm|xs|none Size
OwnSize String 100px Own Size for progress &
camera
Width String full Width
Caption String Progress 1 Caption
Color String primary accent|error|ghost Variant
|ghost|info|none|n
uetral|primary|sec
ondary|success|wa
rning
Bordered Boolea True Bordered
n
Auto Focus Boolea False Auto Focus
n
Prefix String Prefix
Prepend Icon String Prepend Icon
250 / 331
TailwindCSS WebApps using B4X
Events
Focus (event As BANanoEvent)
Blur (event As BANanoEvent)
Keydown (event As BANanoEvent)
KeyUp (event As BANanoEvent)
TouchEnd (event As BANanoEvent)
Change (event As BANanoEvent)
Prepend_Click (event As BANanoEvent)
Append_Click (event As BANanoEvent)
Click (event As BANanoEvent)
Uploading (b as Boolean)
251 / 331
TailwindCSS WebApps using B4X
252 / 331
TailwindCSS WebApps using B4X
Flex
SDUIFLEX
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Flex Type String String 1|auto|flex|initial|Flex Type
none
Align Content String around|baseline|be Align Content
tween|center|end|
evenly|none|start
Align Items String baseline|baseline|c Align Items
enter|end|none|st
art
Align Self String auto|baseline|cent Align Self
er|end|none|start|
stretch
Bg Color String Background Color
Bg Color Intensity String Background Color
Intensity
Flex Basis String Flex Basis
Flex Direction String col|col- Flex Direction
reverse|none|row|
row-reverse
Flex Grow String none|grow|0 Flex Grow
Flex Shrink String none|shrink|0 Flex Shrink
Gap String Gap
Horizontal Gap String Horizontal Gap
Vertical Gap String Vertical Gap
253 / 331
TailwindCSS WebApps using B4X
254 / 331
TailwindCSS WebApps using B4X
Events
Click (e As BANanoEvent)
255 / 331
TailwindCSS WebApps using B4X
Footer
SDUIFOOTER
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Center Boolea False Center
n
Bg Color String Background Color
Bg Color Intensity String Background Color
Intensity
Text Color String Text Color
Text Color Intensity String Text Color Intensity
Visible Boolea True If visible.
n
Margins String a=?; x=?; y=?; t=?; Margins A-X-Y-T-B-L-R
b=?; l=?; r=?
Paddings String a=?; x=?; y=?; t=?; Paddings A-X-Y-T-B-L-R
b=?; l=?; r=?
Classes String Classes added to the
HTML tag.
Styles String Styles added to the HTML
tag. Must be a json String-
use =
Attributes String Attributes added to the
HTML tag. Must be a json
String- use =
Events
256 / 331
TailwindCSS WebApps using B4X
FullCalendar
SDUIFULLCALENDAR
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Initial View String dayGridMonth dayGridMonth|day Initial View
GridWeek|listMont
h|listWeek|timeGri
dDay|timeGridWee
k
Initial Date String now Initial Date
Aspect Ratio String 3 Aspect Ratio
Business Hours Boolea False Business Hours
n
Button Icons Boolea True Show The Prev/next Text
n
Day Max Events Boolea True Day Max Events
n
Editable Boolea True Editable
n
Selectable Boolea True Selectable
n
Select Mirror Boolea True Select Mirror
n
Locale String en Locale
Month Text String month Month Text
Week Text String week Week Text
Day Text String day Day Text
Nav Links Boolea True Nav Links
n
Now Indicator Boolea True Now Indicator
n
Week Numbers Boolea False Week Numbers
n
Visible Boolea True If visible.
n
Margins String a=?; x=?; y=?; t=?; Margins A-X-Y-T-B-L-R
b=?; l=?; r=?
Paddings String a=?; x=?; y=?; t=?; Paddings A-X-Y-T-B-L-R
b=?; l=?; r=?
Classes String Classes added to the
HTML tag.
Styles String Styles added to the HTML
tag. Must be a json String-
use =
Attributes String Attributes added to the
HTML tag. Must be a json
String- use =
Events
Event Signature
257 / 331
TailwindCSS WebApps using B4X
258 / 331
TailwindCSS WebApps using B4X
Grid
SDUIGRID
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Grid Boolea False Grid
n
Align Content String around|baseline|be Align Content
tween|center|end|
evenly|none|start
Align Items String baseline|baseline|c Align Items
enter|end|none|st
art
Align Self String auto|baseline|cent Align Self
er|end|none|start|
stretch
Align Self String auto|baseline|cent Align Self
er|end|none|start|
stretch
Auto Cols String auto|fr|max|min|n Auto Cols
one
Auto Rows String auto|fr|max|min|n Auto Rows
one
Bg Color String Background Color
Bg Color Intensity String Background Color
Intensity
Col End String Column End
Col Span String Col Span
Device Col Span String xs=?; sm=?; md=?; Grid Cols Per Device xs=?;
lg=?; xl=? sm=?; md=?; lg=?; xl=?
Col Start String Column Start
Gap String Gap
Grid Cols String Grid Columns
Device Grid Cols String xs=?; sm=?; md=?; Grid Cols Per Device xs=?;
lg=?; xl=? sm=?; md=?; lg=?; xl=?
Grid Flow String col|col- Grid Flow
dense|dense|none
|row|row-dense
Grid Rows String Grid Rows
Height String 1 of 2|1 of 3|1 of Height
4|2 of 3|3 of
4|auto|full|max|mi
n|none|screen
Horizontal Gap String Horizontal Gap
Horizontal Spacing String 0 0|0.5|1|1.5|2|2.5| Horizontal Spacing
3|3.5|4|5|6|7|8|9
|10
Justify Content String around|between|c Justify Content
enter|end|evenly|
none|start
Justify Items String center|end|none|s Justify Items
259 / 331
TailwindCSS WebApps using B4X
Events
Click (e As BANanoEvent)
260 / 331
TailwindCSS WebApps using B4X
261 / 331
TailwindCSS WebApps using B4X
Hero
SDUIHERO
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Overlay Opacity String Overlay Opacity
Overlay Visible Boolea False Overlay Is Visible
n
Content Classes String Content Classes
Bg Color String base Background Color
Bg Color Intensity String 200 Background Color
Intensity
Text Color String Text Color
Text Color Intensity String Text Color Intensity
Height String Height
Width String Width
Background Image String Background Image Url
Min H Screen Boolea False Min H Screen
n
Rounded Box Boolea False Rounded Box
n
Shadow Boolea False Shadow
n
Visible Boolea True If visible.
n
Margins String a=?; x=?; y=?; t=?; Margins A-X-Y-T-B-L-R
b=?; l=?; r=?
Paddings String a=?; x=?; y=?; t=?; Paddings A-X-Y-T-B-L-R
b=?; l=?; r=?
Classes String Classes added to the
HTML tag.
Styles String Styles added to the HTML
tag. Must be a json String-
use =
Attributes String Attributes added to the
HTML tag. Must be a json
String- use =
Events
262 / 331
TailwindCSS WebApps using B4X
Image
SDUIIMAGE
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Source String The image source.
Shape String none none|circle|rounde Shape
d|squircle|heart|he
xagon|hexagon-
2|decagon|pentago
n|diamond|square|
parallelogram|paral
lelogram-
2|parallelogram-
3|parallelogram-
4|star|star-
2|triangle|triangle-
2|triangle-
3|triangle-4|half-
1|half-2
Alt text String Text shown if the image is
not available.
Object Resize String none contain|cover|fill|s Object Resize
cale-down|none
Width String 12 Width of image
Height String 12 Height of image
Max Width String Max Width
Min Width String Min Width
Min Height String Min Height
Max Height String Max Height
Rounded String Rounded
Shadow Boolea False Shadow
263 / 331
TailwindCSS WebApps using B4X
Events
Click (e As BANanoEvent)
264 / 331
TailwindCSS WebApps using B4X
Indicator
SDUIINDICATOR
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Type String default default|card
Color String Color
Caption String Caption
Size String none lg|md|sm|xs|none Size
Button Color String neutral Button Color
Button Caption String Apply Button Caption
Start Boolea False Start
n
End Boolea False End
n
Top Boolea False Top
n
Bottom Boolea False Bottom
n
Center Boolea False Center
n
Middle Boolea False Middle
n
Visible Boolea True If visible.
n
Margins String a=?; x=?; y=?; t=?; Margins A-X-Y-T-B-L-R
b=?; l=?; r=?
Paddings String a=?; x=?; y=?; t=?; Paddings A-X-Y-T-B-L-R
b=?; l=?; r=?
Classes String Classes added to the
HTML tag.
Styles String Styles added to the HTML
tag. Must be a json String-
use =
Attributes String Attributes added to the
HTML tag. Must be a json
String- use =
Events
265 / 331
TailwindCSS WebApps using B4X
Click (e As BANanoEvent)
Kbd
SDUIKBD
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Caption String Caption
266 / 331
TailwindCSS WebApps using B4X
Events
Click (e As BANanoEvent)
267 / 331
TailwindCSS WebApps using B4X
Label
SDUILABEL
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Size String p p|nav|article|aside Size of the label
|section|div|span|
h1|h2|h3|h4|h5|h
6|header|main|li
CustomTag String Use a custom tag
Caption String The caption of the
element
HTML String RAW HTML. Overrides the
Caption property.
Lorem Ipsum Boolea False Is Lorem Ipsum
n
For String For attribute
Text Size String Text
Text Align String none none|left|center|ri Text Align
ght|justify|start|en
d
Vertical Align String none none|baseline|top| Text Align
middle|bottom|tex
t-top|text-
bottom|sub|super
Font Weight String none none|thin|extraligh Font Weight
t|light|normal|med
ium|semibold|bold
|extrabold|black
Bg Color String Background Color
Bg Color Intensity String Background Color
Intensity
Decoration String none line-through|no- Text Decoration
underline|none|ov
erline|underline
Decoration Style String none dashed|dotted|dou Decoration Style
ble|none|solid|wav
y
Decoration Color String Decoration Color
Decoration Color String Decoration Color Intensity
Intensity
Text Color String Text Color
Text Color Intensity String Text Color Intensity
Text Overflow String none none|text-clip|text- Text Overflow
ellipsis|truncate
Text Transform String none capitalize|lowercas Text Transform
e|none|normal-
case|uppercase
White Space String none none|normal|nowr White Space
ap|pre|pre-
line|pre-wrap
268 / 331
TailwindCSS WebApps using B4X
Events
Click (e As BANanoEvent)
MouseDown (e As BANanoEvent)
MouseEnter (e As BANanoEvent)
MouseLeave (e As BANanoEvent)
MouseMove (e As BANanoEvent)
MouseOver (e As BANanoEvent)
MouseOut (e As BANanoEvent)
MouseUp (e As BANanoEvent)
269 / 331
TailwindCSS WebApps using B4X
Link
SDUILINK
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Caption String Link Caption
Hover Boolea False Hover
n
Href String # Href
Normal Anchor Boolea False Normal Anchor
n
Target String _blank _blank|_parent|_se Target
lf|_top|none
Variant String none accent|error|info|n Variant
one|nuetral|primar
y|secondary|succes
s|warning
Text Color String Text Color
Text Color Intensity String Text Color Intensity
Visible Boolea True If visible.
n
Margins String a=?; x=?; y=?; t=?; Margins A-X-Y-T-B-L-R
b=?; l=?; r=?
Paddings String a=?; x=?; y=?; t=?; Paddings A-X-Y-T-B-L-R
b=?; l=?; r=?
Classes String Classes added to the
HTML tag.
Styles String Styles added to the HTML
tag. Must be a json String-
use =
Attributes String Attributes added to the
HTML tag. Must be a json
270 / 331
TailwindCSS WebApps using B4X
Events
Click (e As BANanoEvent)
List
SDUILIST
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
List Type String none decimal|disc|none List Type
Space Y String 1 Space Y
Style Position String none none|inside|outsid Style Position
e
Ordered Boolea False Ordered List
n
Text Size String Text Size
Visible Boolea True If visible.
n
Margins String a=?; x=?; y=?; t=?; Margins A-X-Y-T-B-L-R
b=?; l=?; r=?
Paddings String a=?; x=?; y=?; t=?; Paddings A-X-Y-T-B-L-R
b=?; l=?; r=?
Classes String Classes added to the
HTML tag.
Styles String Styles added to the HTML
271 / 331
TailwindCSS WebApps using B4X
Events
Click (e As BANanoEvent)
List View
SDUILISTVIEW
Properties
272 / 331
TailwindCSS WebApps using B4X
Events
Click (item As String)
Lottie Player
SDUILOTTIEPLAYER
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Json URL String Json File Url
Animation Speed String 1 Animation Speed
Auto Play Boolea True Auto Play
n
273 / 331
TailwindCSS WebApps using B4X
Events
274 / 331
TailwindCSS WebApps using B4X
Menu
SDUIMENU
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Item Color String Background Color Of Items
Item Color Intensity String Item Color Intensity
Menu Compact Boolea False Menu Compact
n
Menu Normal Boolea False Menu Normal
n
Menu Vertical Boolea False Menu Vertical
n
Height String Height
Width String Width
Highlight Active Boolea False Highlight Active Item
n
Rounded Box Boolea False Rounded Box
n
Shadow Boolea False Shadow
n
Text Color String Text Color
Text Color Intensity String Text Color Intensity
Bg Color String Background Color
Bg Color Intensity String Background Color
Intensity
Visible Boolea True If visible.
n
Margins String a=?; x=?; y=?; t=?; Margins A-X-Y-T-B-L-R
b=?; l=?; r=?
Paddings String a=?; x=?; y=?; t=?; Paddings A-X-Y-T-B-L-R
b=?; l=?; r=?
Classes String Classes added to the
HTML tag.
Styles String Styles added to the HTML
tag. Must be a json String-
275 / 331
TailwindCSS WebApps using B4X
Events
Click (item As String)
276 / 331
TailwindCSS WebApps using B4X
Mockup Code
SDUIMOCKUPCODE
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Language String vb css|html|js|vb Language
Caption String Source Code Caption
Code Type String default card|default Code Type
File Name String code.bas File Name
Font Name String Font Name
Font Size String Font Size
Visible Boolea True If visible.
n
Margins String a=?; x=?; y=?; t=?; Margins A-X-Y-T-B-L-R
b=?; l=?; r=?
Paddings String a=?; x=?; y=?; t=?; Paddings A-X-Y-T-B-L-R
b=?; l=?; r=?
Classes String Classes added to the
HTML tag.
Styles String Styles added to the HTML
tag. Must be a json String-
use =
Attributes String Attributes added to the
HTML tag. Must be a json
String- use =
Events
Action (item As String)
277 / 331
TailwindCSS WebApps using B4X
Mockup Phone
SDUIMOCKUPPHONE
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Caption String Source Code Caption
Raw Html String Html
Border Color String Border Color
Border Color String Border Color Intensity
Intensity
Visible Boolea True If visible.
n
Margins String a=?; x=?; y=?; t=?; Margins A-X-Y-T-B-L-R
b=?; l=?; r=?
Paddings String a=?; x=?; y=?; t=?; Paddings A-X-Y-T-B-L-R
b=?; l=?; r=?
Classes String Classes added to the
278 / 331
TailwindCSS WebApps using B4X
Events
Mockup Window
SDUIMOCKUPWINDOW
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Caption String Source Code Caption
Raw Html String Html
Border Color String Border Color
Border Color String Border Color Intensity
Intensity
Width String full Width
Height String 300px Height
Visible Boolea True If visible.
n
279 / 331
TailwindCSS WebApps using B4X
Events
Modal
SDUIMODAL
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Title String SithasoDaisy Title
Message (HTML) String Message (Html)
Width String 500px Width
Own Actions Boolea False Own Actions
280 / 331
TailwindCSS WebApps using B4X
281 / 331
TailwindCSS WebApps using B4X
Events
Yes_Click (e As BANanoEvent)
No_Click (e As BANanoEvent)
Cancel_Click (e As BANanoEvent)
282 / 331
TailwindCSS WebApps using B4X
Nav Bar
SDUINAVBAR
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
283 / 331
TailwindCSS WebApps using B4X
284 / 331
TailwindCSS WebApps using B4X
Events
Hamburger_Click (e As BANanoEvent)
Menu_Click (e As BANanoEvent)
Options Card
SDUIOPTIONSCARD
Properties
285 / 331
TailwindCSS WebApps using B4X
Events
Change (item As String)
Page
SDUIPAGE
Properties
286 / 331
TailwindCSS WebApps using B4X
Events
287 / 331
TailwindCSS WebApps using B4X
Progress
SDUIPROGRESS
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Type String default default|input-group
Size String none lg|md|sm|xs|none Size
Width String full Width
Caption String Progress 1 Caption
Value String 50 Value
Hint String Hint
Min Value String 0 Min Value
Max Value String 100 Max Value
Step Value String 1 Step Value
Auto Focus Boolea False Auto Focus
n
Bordered Boolea False Bordered
n
Color String primary accent|error|ghost Variant
|info|none|nuetral
|primary|secondary
|success|warning
Required Boolea False Is Required
n
Error Message String Error Message
Prefix String Prefix
288 / 331
TailwindCSS WebApps using B4X
Events
Change (value As int)
Prepend_Click (event As BANanoEvent)
Append_Click (event As BANanoEvent)
289 / 331
TailwindCSS WebApps using B4X
QRCode
SDUIQRCODE
Properties
Property Type Default Value Options Description
ParentID String The id of the element to
place this into
Hidden Boolea False Hidden
n
Text String SithasoDaisy Text
Size String 200 100|200|300|400| Size
500|600|700
Color Dark String #000000 Color Dark
Color Light String #ffffff Color Light
Correct Level String H H|L|M|Q Correct Level
290 / 331
TailwindCSS WebApps using B4X
Events
RadialProgress
SDUIRADIALPROGRESS
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Value String 3 Value
Text Color String Text Color
Text Color Intensity String Text Color Intensity
Size String Size
Thickness String Thickness
Indeterminate Boolea False Indeterminate
n
Interval String 10 Timer Interval
Bg Color String Background Color
Bg Color Intensity String Background Color
Intensity
291 / 331
TailwindCSS WebApps using B4X
Events
RadioGroup
SDUIRADIOGROUP
Properties
292 / 331
TailwindCSS WebApps using B4X
Events
Change (item As String)
293 / 331
TailwindCSS WebApps using B4X
294 / 331
TailwindCSS WebApps using B4X
Range
SDUIRANGE
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Input Type String default default|input-group
Caption String Range Caption
Size String none lg|md|sm|xs|none Size
Width String full Width
Color String primary accent|error|ghost Variant
|ghost|info|none|n
uetral|primary|sec
ondary|success|wa
rning
Value String 20 Value
Hint String Hint
Min Value String 0 Min Value
Max Value String 100 Max Value
Step Value String 1 Step Value
Auto Focus Boolea False Auto Focus
n
Bordered Boolea False Bordered
n
Border Color String Border Color
Border Color String Border Color Intensity
Intensity
Disabled Boolea False If Disabled
n
Error Message String Error Message
Hide Details Boolea False Hide Details
n
Prefix String Prefix
Prepend Icon String Prepend Icon
Append Icon String Append Icon
Suffix String Suffix
Read Only Boolea False Read Only
n
Required Boolea False Is Required
n
Visible Boolea True If visible.
n
Margins String a=?; x=?; y=?; t=?; Margins A-X-Y-T-B-L-R
b=?; l=?; r=?
Paddings String a=?; x=?; y=?; t=?; Paddings A-X-Y-T-B-L-R
b=?; l=?; r=?
Classes String Classes added to the
HTML tag.
295 / 331
TailwindCSS WebApps using B4X
Events
Change (value As Int)
Prepend_Click (event As BANanoEvent)
Append_Click (event As BANanoEvent)
296 / 331
TailwindCSS WebApps using B4X
Rating
SDUIRATING
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Input Type String default default|input-group
Caption String Rating Caption
Length String 5 Number Of Stars
Value String 3 Value
Mask String star-2 squircle|heart|hexa Mask
gon|hexagon-
2|decagon|pentago
n|diamond|square|
circle|parallelogram
|parallelogram-
2|parallelogram-
3|parallelogram-
4|star|star-
2|triangle|triangle-
2|triangle-
3|triangle-4|half-
1|half-2
Size String none lg|md|sm|xs|none Size
Width String full Width
Auto Focus Boolea False Auto Focus
n
Bg Color String orange Background Color
Bg Color Intensity String 600 Background Color
297 / 331
TailwindCSS WebApps using B4X
Events
Change (value As Double)
298 / 331
TailwindCSS WebApps using B4X
Row
SDUIROW
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
299 / 331
TailwindCSS WebApps using B4X
Events
300 / 331
TailwindCSS WebApps using B4X
Click (e As BANanoEvent)
Select
SDUISELECT
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Select Type String default default|input-group
Size String none lg|md|sm|xs|none Size
Width String full Width
Caption String Progress 1 Caption
Value String b4a Value
Place Holder String Placeholder
Raw Key Values String b4a Key Values For The Items
[k
301 / 331
TailwindCSS WebApps using B4X
Events
Focus (event As BANanoEvent)
Blur (event As BANanoEvent)
Change (item As String)
Prepend_Click (event As BANanoEvent)
Append_Click (event As BANanoEvent)
302 / 331
TailwindCSS WebApps using B4X
303 / 331
TailwindCSS WebApps using B4X
SignaturePad
SDUISIGNATUREPAD
Properties
Property Type Default Value Options Description
ParentID String The id of the element to
place this into
Background Color String white amber|black|blue| Background Color
blue-
grey|brown|cyan|d
eep-orange|deep-
purple|green|grey|
indigo|light-
blue|light-
green|lime|orange
|pink|purple|red|t
eal|transparent|wh
ite|yellow|primary|
secondary|accent|e
rror|info|success|
warning|none
Dot Size String 0 Dot Size
Height String 200 Height
Width String 400 Width
Image Type String jpeg jpeg|png|svg Save As Image Type
Max Width String 2.5 Max Width
Min Distance Int 5 Min Distance
Min Width String 0.5 Min Width
Pen Color String black amber|black|blue| Pen Color
blue-
grey|brown|cyan|d
eep-orange|deep-
purple|green|grey|
indigo|light-
blue|light-
green|lime|orange
|pink|purple|red|t
eal|transparent|wh
304 / 331
TailwindCSS WebApps using B4X
Events
Event Signature
afterUpdateStroke (e As BANanoEvent)beforeUpdateStroke (e As BANanoEvent)beginStroke (e As
BANanoEvent)endStroke (e As BANanoEvent)
305 / 331
TailwindCSS WebApps using B4X
Stats
SDUISTATS
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Alignment String none horizontal|none|ve Alignment
rtical
Vertical On Small Boolea False Vertical On Small Only
Only n
306 / 331
TailwindCSS WebApps using B4X
Events
307 / 331
TailwindCSS WebApps using B4X
Steps
SDUISTEPS
Properties
Property Type Default Value Options Description
ReadMe Children String [name]_1_content The id of each panel
ParentID String The ParentID of this div
Step Type String horizontal horizontal|vertical Step Type
Color String primary accent|error|info|n Variant
one|primary|secon
dary|success|warni
ng
Raw Items String Item 1;Item 2;Item Items (;)
3
Full Width Boolea True WFull
n
Visible Boolea True If visible.
n
Margins String a=?; x=?; y=?; t=?; Margins A-X-Y-T-B-L-R
b=?; l=?; r=?
Paddings String a=?; x=?; y=?; t=?; Paddings A-X-Y-T-B-L-R
b=?; l=?; r=?
Classes String Classes added to the
HTML tag.
Styles String Styles added to the HTML
tag. Must be a json String-
use =
Attributes String Attributes added to the
HTML tag. Must be a json
308 / 331
TailwindCSS WebApps using B4X
Events
Change (pos As Int)
Swap
SDUISWAP
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Type String text icon|text Swap Type
Off Value String OFF Off Value
On Value String ON On Value
Size String 2xl Size
Effect String rotate flip|rotate Effect
Bg Color String Background Color
Bg Color Intensity String Background Color
Intensity
Visible Boolea True If visible.
n
Margins String a=?; x=?; y=?; t=?; Margins A-X-Y-T-B-L-R
b=?; l=?; r=?
Paddings String a=?; x=?; y=?; t=?; Paddings A-X-Y-T-B-L-R
309 / 331
TailwindCSS WebApps using B4X
Events
On_Click (e As BANanoEvent)
Off_Click (e As BANanoEvent)
Table
SDUITABLE
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Table Type String card card|default|prope Table Type
rty
Title String Title
Pagination Boolea True Pagination
n
Items Per Page String 5 Items Per Page
Is Compact Boolea False Is Compact
310 / 331
TailwindCSS WebApps using B4X
311 / 331
TailwindCSS WebApps using B4X
Events
Event Signature
CustomColumn (item As Map)
SelectAll (Checked As Boolean)
Edit (item As Map)
Clone (item As Map)
Menu (item As Map)
Download (item As Map)
Upload (item As Map)
Delete (item As Map)
Change (Value As Object, Column As String, item As Map)
Add (e As BANanoEvent)
Refresh (e As BANanoEvent)
Back (e As BANanoEvent)
DeleteAll (e As BANanoEvent)
PrevPage (e As BANanoEvent)
NextPage (e As BANanoEvent)
ChangeProperties (item As Map)
312 / 331
TailwindCSS WebApps using B4X
313 / 331
TailwindCSS WebApps using B4X
314 / 331
TailwindCSS WebApps using B4X
Tabs
SDUITABS
Properties
Property Type Default Value Options Description
ReadMe Children String [name]_1_content The id of each panel
ParentID String The ParentID of this div
Size String md lg|md|none|sm|xs Size
Type String default default|bordered|li Tab Type
fted|boxed
Items String Item 1;Item 2;Item Items (;)
3
Visible Boolea True If visible.
n
Margins String a=?; x=?; y=?; t=?; Margins A-X-Y-T-B-L-R
b=?; l=?; r=?
Paddings String a=?; x=?; y=?; t=?; Paddings A-X-Y-T-B-L-R
b=?; l=?; r=?
Classes String Classes added to the
HTML tag.
Styles String Styles added to the HTML
tag. Must be a json String-
use =
Attributes String Attributes added to the
HTML tag. Must be a json
String- use =
Events
Change (pos As Int)
315 / 331
TailwindCSS WebApps using B4X
TextArea
SDUITEXTAREA
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Input Type String default default|input-group
Caption String TextArea1 Caption
Color String accent|error|ghost Variant
|ghost|info|none|n
uetral|primary|sec
ondary|success|wa
rning
Value String Value
Place Holder String Placeholder
Rows String 4 Rows
Width String full Width
Prefix String Prefix
Prepend Icon String Prepend Icon
Suffix String Suffix
Append Icon String Append Icon
Auto Focus Boolea False Auto Focus
n
Bordered Boolea True Bordered
n
Disabled Boolea False If Disabled
316 / 331
TailwindCSS WebApps using B4X
Events
Focus (event As BANanoEvent)
Blur (event As BANanoEvent)
Keydown (event As BANanoEvent)
KeyUp (event As BANanoEvent)
TouchEnd (event As BANanoEvent)
Change (event As BANanoEvent)
Prepend_Click (event As BANanoEvent)
Append_Click (event As BANanoEvent)
317 / 331
TailwindCSS WebApps using B4X
TextBox
SDUITEXTBOX
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Input Type String default date-picker|date-
time-
picker|default|inpu
t-group|roll-
date|roll-date-
time|roll-
time|password|tele
phone|number|tim
e-picker|dialer
Size String none lg|md|sm|xs|none Size
Width String full Width
Color String accent|error|ghost Color
318 / 331
TailwindCSS WebApps using B4X
319 / 331
TailwindCSS WebApps using B4X
Events
Event Signature
Focus (event As BANanoEvent)
Blur (event As BANanoEvent)
Keydown (event As BANanoEvent)
KeyUp (event As BANanoEvent)
TouchEnd (event As BANanoEvent)
Change (event As BANanoEvent)
Prepend_Click (event As BANanoEvent)
Append_Click (event As BANanoEvent)
Click (event As BANanoEvent)
ConfirmDate (dateChosen As Object)
CancelDate (event As BANanoEvent)
Uploading (b as Boolean)
Minus (event As BANanoEvent)
Plus (event As BANanoEvent)
Toggle (Status As Boolean)
320 / 331
TailwindCSS WebApps using B4X
321 / 331
TailwindCSS WebApps using B4X
Toast
SDUITOAST
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Input Type String default default|empty Toast Type
Color String success error|info|none|succ Variant
ess|warning
Title String New Message Title
Arrived
Toast Description String Toast Description
TimeOut String Time Out for 1 second use
1000
At Center Boolea False At Center
n
At End Boolea False At End
n
At Middle Boolea False At Middle
n
At Start Boolea False At Start
n
322 / 331
TailwindCSS WebApps using B4X
Events
Event Signature
Click (e As BANanoEvent)
323 / 331
TailwindCSS WebApps using B4X
Toggle
SDUITOGGLE
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Input Type String default default|input-group Input Type
Position String left left|right Toggle Position
Caption String Toggle 1 Caption
Color String primary accent|error|ghost Variant
|ghost|info|none|n
uetral|primary|sec
ondary|success|wa
rning
Size String none lg|md|sm|xs|none Size
Width String full Width
Checked Boolea False If Checked
n
Indeterminate Boolea False Indeterminate
n
Auto Focus Boolea False Auto Focus
n
Bg Color String Background Color
Bg Color Intensity String Background Color
Intensity
Checked Bg Color String Checked Background Color
Checked Bg Color String Checked Background Color
Intensity Intensity
Read Only Boolea False Read Only
n
Required Boolea False Is Required
n
Visible Boolea True If visible.
n
Margins String a=?; x=?; y=?; t=?; Margins A-X-Y-T-B-L-R
b=?; l=?; r=?
Paddings String a=?; x=?; y=?; t=?; Paddings A-X-Y-T-B-L-R
b=?; l=?; r=?
Classes String Classes added to the
324 / 331
TailwindCSS WebApps using B4X
Events
Change (checked As Boolean)
325 / 331
TailwindCSS WebApps using B4X
Tooltip
SDUITOOLTIP
Properties
Property Type Default Value Options Description
ParentID String The ParentID of this div
Caption String ToolTip Caption
Color String primary accent|error|ghost Variant
|info|none|nuetral
|primary|secondary
|success|warning
Open Boolea False Is Open
n
Position String none bottom|left|none|r Tooltip Position
ight|top
Visible Boolea True If visible.
n
Margins String a=?; x=?; y=?; t=?; Margins A-X-Y-T-B-L-R
b=?; l=?; r=?
Paddings String a=?; x=?; y=?; t=?; Paddings A-X-Y-T-B-L-R
b=?; l=?; r=?
Classes String Classes added to the
HTML tag.
Styles String Styles added to the HTML
tag. Must be a json String-
use =
Attributes String Attributes added to the
HTML tag. Must be a json
String- use =
Events
Click (e As BANanoEvent)
326 / 331
TailwindCSS WebApps using B4X
Webcam
SDUIWEBCAM
Properties
Property Type Default Value Options Description
ParentID String The id of the element to
place this into
Hidden Boolea False Hidden
n
Width String 490px Width
Height String 390px Height
ImageFormat String jpeg jpeg|png Image Format
JPEG Quality String 90 JPEG Quality
Margins AXYTBLR String a=?; x=?; y=?; t=?; Margins A-X-Y-T-B-L-R
b=?; l=?; r=?
Paddings AXYTBLR String a=?; x=?; y=?; t=?; Paddings A-X-Y-T-B-L-R
b=?; l=?; r=?
Classes String Classes added to the
HTML tag.
Styles String Styles added to the HTML
tag. Must be a json String-
use =
Attributes String Attributes added to the
HTML tag. Must be a json
String- use =
Events
SnapSuccess (data_URI As String)
327 / 331
TailwindCSS WebApps using B4X
Calculator
328 / 331
TailwindCSS WebApps using B4X
In this example, we execute a POST call to an end point using (BANano)fetch. We have defined a class
called SDUIFetch which makes it easy for us to make fetch calls.
329 / 331
TailwindCSS WebApps using B4X
LZString Compression
WebScraping
A webscraper is available on the navbar
Xylophone
This is published on Netlify. https://sithasodaisyxylophone.netlify.app/
User Onboarding
This is also part of the project templates. Also a demo is available on Netlify,
https://sithasouseronboarding.netlify.app/
330 / 331
TailwindCSS WebApps using B4X
331 / 331