kumify/frontend/classes.py

18 lines
433 B
Python
Raw Normal View History

class NavSection:
def __init__(self, name, order=100):
self.name = name
self.order = order
self.items = []
def add_item(self, item):
self.items.append(item)
2021-10-24 14:51:12 +00:00
def get_html(self):
pass
class NavItem:
def __init__(self, name, url, icon="fas fa-fw fa-smile", title=None):
self.name = name
self.url = url
self.icon = icon
self.title = title or name