small bottstrap template improvements

This commit is contained in:
2022-09-24 17:49:06 +02:00
parent 01eec041b5
commit b3d1804a2e
6 changed files with 24 additions and 25 deletions

View File

@ -13,14 +13,14 @@ div.font_size = 4
btn = bHTML.ButtonPrimary("Click me", parent=app.sidebar)
btn.w = 100
toast_container = bHTML.ToastContainer(parent=app.main_area)
toast_container = bHTML.ToastContainer(parent=app.main)
toast_container.position_bottom = 0
toast_container.position_end = 0
def onclick(_):
alert = bHTML.AlertSuccess("You clicked me!", parent=app.main_area)
alert = bHTML.AlertSuccess("You clicked me!", parent=app.main)
alert.w = 25
toast = bHTML.Toast("You clicked me!", parent=toast_container)
toast.animation = True