How do I put a font awesome icon in the anvil.alert buttons?
Below is the object construction for alert box in the documentation.
Maybe this only accepts text?
Display a large popup with a title and three buttons.
result = alert(content="Choose Red or Blue",
title="An important choice",
large=True,
buttons=[
("Red", "RED", "danger"),
("Blue", "BLUE", "info"),
("Neither", None, "default")
])
print "The user chose %s" % result
To note: I also tried putting icon tags in the buttons like so:
BUTTONS = [("Sign up", "signup", "success"),
("<i class="font awesome code"></i>", "google", "danger"),
("Log in", "login", "info")]