Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 813 Bytes

cards.md

File metadata and controls

43 lines (30 loc) · 813 Bytes

Cards

Cards

from lona_picocss.html import HTML, Card, H1
from lona_picocss import install_picocss
from lona import View, App

app = App(__file__)

install_picocss(app, debug=True)


@app.route('/')
class CardsView(View):
    def handle_request(self, request):
        return HTML(
            H1('Card'),
            Card(
                'Card Body',
                header='Card Header',
            ),
        )


app.run()

Arguments

Name Type Description
header Node | None Initial card header
footer Node | None Initial card footer

Methods

Name Return Type Description
get_header() Node Gets or creates a card header
get_footer() Node Gets or creates a card footer