Other SithasoDaisy 2 - The Power to Choose Edition Now Available

Mashiane

Expert
Licensed User
Longtime User
The drawer child with href strings in the Needful Things don't work,
Fixed.
I didn't find a way to show an icon for each drawer child item with href that will open a new window.
B4X:
drawer.AddItemChildLinkIcon("tw", "link-twa", "Tailwind Awesome", "https://www.tailwindawesome.com", "_blank", "fa-solid fa-swatchbook")

update the code

B4X:
Private Sub appdrawer_menu_Click (item As String)
    'hide the drawer
    drawer.Close
    'we have navigated to a page, exit
    If app.ShowPage(item) Then Return
    '
    If item.StartsWith("api-") Then
        sithasoAPI.compname = item
        sithasoAPI.Show(app)
        Return
    End If
    
    If item.StartsWith("link-") Then
        drawer.ItemLink(item).NavigateTo
        Return
    End If
    
    'we have code that does not open a page
    Select Case item
    Case "rightdrawer"
        drwRight.show
    Case "leftdrawer"
        drwLeft.show
    End Select
End Sub

Will be available on the next update
 

JGParamo

Active Member
Licensed User
I cannot get to work the navigation bar menu button using the event Menu_Click (e As BANanoEvent) as given in the manual.
B4X:
...
    cboDesign.SizeSM
    cboDesign.Root.mx(2)
    cboDesign.Hide
    cboDesign.HideOnSmall
    '
    'add a menu button to the navbar
    navbar.AddMenuButton

End Sub

Sub Menu_Click (e As BANanoEvent)
    app.ShowSwal("Menu Button click!")
End Sub
 

Mashiane

Expert
Licensed User
Longtime User
This was added as an example. You can add any control you want in the navbar, see how the cboDesign component was added. Also check other navbar code in the demo source.
 

JGParamo

Active Member
Licensed User

JGParamo

Active Member
Licensed User
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…