B4J Tutorial SithasoDaisy TailwindCSS UI Toolkit: Q & A

MichalK73

Well-Known Member
Licensed User
Longtime User
Did you see the 3 page template project? This has 1 drawer and navbar and additional pages that one can navigate to with the drawer and navbar intact in pgindex.
Yes I saw but I wanted just navbar without using appdrawer.
Surprisingly I succeeded.
In pgindex I added line number 10:
pgindex:
Sub Initialize                    'ignoreDeadCode
    'initialize the app
    app.AddApp(Me, Main.AppName)
    BANano.Await(app.UsesJQuery)
    BANano.Await(app.UsesSignaturePad)
    'set the font of the app
    app.Font = "font-sans"
    'load the base layout
    BANano.LoadLayout(app.Here, "baselayout2")
    app.AddPageView
'    BANano.LoadLayout(app.Here, "baselayout")
    'link this app to the drawer, this is needed
    'when adding pages to side nav
'    appdrawer.app = app
    'create the drawer menu
'    CreateDrawerMenu
    'add any other page not added to the drawer menu
'    AddPages
    navmenu
    'show the home page
    pgHome.Show(app)
End Sub
Wow then in pgone:

B4X:
'sub to show the page
Sub Show(duiapp As SDUIApp)            'ignore
    page.AddPage(Me, name)
    page.Root.p(6)
    'get the reference to the app
    app = duiapp
    'build the page, via code or loadlayouts
    BuildPage
End Sub
Working fine
 

Mashiane

Expert
Licensed User
Longtime User
Will be fixed in the next release. Thanks for the heads up.


 

sdleidel

Active Member
Licensed User
Longtime User
I have a question at the Rolldate.
i have add a Rolldate with the designer.
how i can change the "Confirm" and "Cancel" Text ?
1:
SDUIrolldate.Cancel = "Abbruch" do nothing

Or with the options ? But how i can add this to the Rolldate what i have add with the designer?
2:
Dim dt2Options As RollDateOptions = app.InitRollDateTime
ddt2Options.Cancel  = "Abbruch"

And... I found a Bug ?

I add a rolldate in the designer, without a caption Text. then confirm and cancel a disabled.
i dont´t need the Text on the top of the Datefield.
I have found a solution for this.
Wirte a Text in the Captionfield in the Designer.
SDUITextBoxHomeDate2.Label.hidden(True) to hide the Text on the top of the Datefield...
 
Last edited:

sdleidel

Active Member
Licensed User
Longtime User
Next Problem...

The Roll-time Gadget...

I disable and set it to read only in my code, i can click on it and the roll-time (with confirm and cancel) appears...
 

Mashiane

Expert
Licensed User
Longtime User
Looking into these issues. Thanks.
 

sdleidel

Active Member
Licensed User
Longtime User
1:
page.Root.AddModal( "mdlconfirm", "Confirm", "Yes", "No", "", "100px")

or

2:
page.Root.AddModal( "mdlconfirm", "Confirm", "Yes", "No", "", "1500px")

makes no different... Is the "Bug" back ? (-:
 

sdleidel

Active Member
Licensed User
Longtime User
The Timepicker in a Table make Problems.


1:
flatpickr.min.js:2
 Error: flatpickr: invalid locale
    at se (flatpickr.min.js:2:26183)
    at flatpickr.min.js:2:39844
    at k (flatpickr.min.js:2:49339)
    at T (flatpickr.min.js:2:49626)
    at I (flatpickr.min.js:2:50016)
    at BANanoExec (bananocore.js:18:9426)
    at _B.addrow (sithasodaisy.js:99054:1)
    at _B.setitems (sithasodaisy.js:95047:10)
    at async _B.setitemspaginate (sithasodaisy.js:94735:1)
    at async banano_sithasodaisydemo_tables5.build_table5 (app.js:28806:1)
 

Mashiane

Expert
Licensed User
Longtime User
 

giannimaione

Well-Known Member
Licensed User
Longtime User
with new version of sithasodaisy (20/03/2024) change SDUITextBox Custom Properties:
B4X:
Input Type: date-picker
Date Picker Locale: it
Date Time Format: d-m-Y
(missing DP Alt Input)
the previous date:

after upgrade:


how to set date-picker "day/month/year" ?
example 20/03/2024
 

Mashiane

Expert
Licensed User
Longtime User
I am attending to this regression and will make an update available. My apologies about the inconvenience.
 

Mashiane

Expert
Licensed User
Longtime User
This has been fixed.
 

Mashiane

Expert
Licensed User
Longtime User
This has been fixed.

For more details, see this thread: https://www.b4x.com/android/forum/t...-about-the-flatpickr-date-time-picker.160009/
 

giannimaione

Well-Known Member
Licensed User
Longtime User
how to use Search into SDUITable ?

here search from SDUITable:

search with phpadmin (mysql) is correct
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…