Advanced Form Components

Combobox, Color Picker, Rating — with server-side filtering

← Home

Combobox — Server Search

Type to filter. Options come from the server — no client-side JS filtering.

United States
United Kingdom
Canada
Australia
Germany
France
Japan
Brazil
Django
Ruby on Rails
Laravel
Phoenix (Elixir)
Spring Boot
FastAPI
Express.js

Selected: django

Color Picker

Pick
217°
91%
60%
100%
Value: #3B82F6

Rating Input

Not rated yet
4/5
4.5 (128 reviews)
3.2 (47 reviews)

How Combobox Works

views.pypython
@event_handler()
def country_search(self, value: str = '', **kwargs):
    q = value.lower()
    self.country_options = [
        o for o in ALL_COUNTRIES
        if q in o['label'].lower()
    ] if q else ALL_COUNTRIES

@event_handler()
def select_country(self, value: str = '', **kwargs):
    self.country_value = value
    self.country_options = ALL_COUNTRIES

The server filters the option list on every keystroke. This enables database search, async lookups, and permission-filtered options — with no client-side JavaScript.