l.a.b.q.SearchableFAQRadioWidget(LaunchpadRadioWidget) : class documentation

Part of lp.answers.browser.question View In Hierarchy

Widget combining a set of radio buttons with a search text field.

The search field content is used to filter the vocabulary. The user can select an element from this set using the radio buttons.

Method search_field_name Return the name to use for the search field.
Method search_button_name Return the name to use for the search button.
Method renderValue Render the widget with the value.
Method renderItemsWithValues Render the list of possible values.
Method getSearchQuery Return the search query.
Method renderTerm Render a term as a radio button.
Method renderSearchWidget Render the search entry field and the button.
Method renderSearchField Render the search field.
Method renderSearchButton Render the search button.

Inherited from LaunchpadRadioWidget:

Method _renderItem Undocumented
Method _div Undocumented
@property
def search_field_name(self):
Return the name to use for the search field.
@property
def search_button_name(self):
Return the name to use for the search button.
def renderValue(self, value):
Render the widget with the value.
def renderItemsWithValues(self, values):
Render the list of possible values.

Those found in values are marked as selected. The list of rendered values is controlled by the search query. The currently selected value is always added to the set.

def getSearchQuery(self):
Return the search query.
def renderTerm(self, index, term, selected):
Render a term as a radio button.

The term's token is used as the radio button label. A link to the term's value is added beside the button.

def renderSearchWidget(self):
Render the search entry field and the button.
def renderSearchField(self):
Render the search field.
def renderSearchButton(self):
Render the search button.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.