This is a reference document with a list of the provided widgets and their arguments.
This widget renders each option as a link, instead of an actual <input>. It has one method that you can override for additional customization. option_string()
should return a string with 3 Python keyword argument placeholders:
attrs
: This is a string with all the attributes that will be on the final<a>
tag.query_string
: This is the query string for use in thehref
option on the<a>
element.label
: This is the text to be displayed to the user.