类型 MultiSelectLayout

API 文档由 Go 源码生成,内容为英文。

type MultiSelectLayout struct {
	Bounds, Input, Popup ui.Rect
	Hidden               int
}

构造函数

PaintMultiSelect#

func PaintMultiSelect(canvas *ui.Canvas, theme ui.Theme, bounds ui.Rect, s *MultiSelectState, o MultiSelectOptions) MultiSelectLayout

PaintMultiSelect paints a compact editable multi-select. Chips that cannot fit beside the native query input collapse to +N; every value remains available in the popup for deselection. The popup traps focus around the input as well as the list, so typing and IME stay native while it is open.