类型 SheetOptions
API 文档由 Go 源码生成,内容为英文。
type SheetOptions struct {
Layer uint16
Scope ui.ID
DismissID ui.ID
CloseID ui.ID
Side SheetSide
ContentExtent float32
// BodyHeight sizes a top or bottom sheet that has no ContentExtent to its
// parts: the header, a body this tall, the footer and the gaps between them,
// as `h-auto` fits a sheet to its content. A side sheet fills the window's
// height and ignores it.
BodyHeight float32
// ButtonSize sizes the footer's buttons and the footer with them; the zero
// value is ButtonSizeDefault.
ButtonSize ButtonSize
// InitialFocusID names the control that takes focus when the sheet opens.
// Zero leaves focus where the runtime puts it, which is nowhere when the
// opener is outside the new scope.
InitialFocusID ui.ID
}SheetOptions contains caller-owned modal identities and side geometry.