类型 ComboboxOptions

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

type ComboboxOptions struct {
	InputID ui.ID
	ClearID ui.ID
	// TriggerID, when set, makes the chevron a button of its own (Vega's
	// icon-xs ghost trigger) with a hover background; leave it zero when the
	// whole input already toggles the popup.
	TriggerID   ui.ID
	Label       string
	Value       string
	Query       string
	Placeholder string
	Hint        string
	Open        bool
	Disabled    bool
	Invalid     bool
	ShowTrigger bool
	ShowClear   bool
	Content     ui.Rect
	Layer       uint16
	Scope       ui.ID
	DismissID   ui.ID
	// Viewport, with DismissID, makes the open popup declare a hit over the
	// whole window behind its surface, so pressing anywhere outside it reports
	// DismissID (Escape reports it too). See SelectOptions.Viewport.
	Viewport ui.Rect
	// Scroll is the scroll position of a popup whose options do not all fit its
	// Content (see MenuScroll); without one only the options at the top show.
	Scroll *MenuScroll
}

ComboboxOptions describes one application-owned editable selection snapshot.