Documentation
¶
Overview ¶
Copyright 2026 Teradata
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Teradata ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloseCallback ¶
CloseCallback allows dialogs to perform cleanup when closed.
type CloseDialogMsg ¶
type CloseDialogMsg struct{}
CloseDialogMsg is sent to close the topmost dialog.
type DialogCmp ¶
type DialogCmp interface {
util.Model
Dialogs() []DialogModel
HasDialogs() bool
GetLayers() []*lipgloss.Layer
ActiveModel() util.Model
ActiveDialogID() DialogID
}
DialogCmp manages a stack of dialogs with keyboard navigation.
type DialogModel ¶
DialogModel represents a dialog component that can be displayed.
type KeyMap ¶
KeyMap defines keyboard bindings for dialog management.
func DefaultKeyMap ¶
func DefaultKeyMap() KeyMap
func (KeyMap) KeyBindings ¶
KeyBindings implements layout.KeyMapProvider
type OpenDialogMsg ¶
type OpenDialogMsg struct {
Model DialogModel
}
OpenDialogMsg is sent to open a new dialog with specified dimensions.