PF6 InlineEdit component
Displays text that can be toggled into an editable input. The consumer controls
the editing state, current value, and all transition messages.
-- Model
type alias Model =
{ name : String, editingName : Bool }
-- Msg
type Msg = EditName | NameChanged String | SaveName | CancelName
-- View
InlineEdit.inlineEdit model.name
|> InlineEdit.withEditing model.editingName
|> InlineEdit.withOnEdit EditName
|> InlineEdit.withOnChange NameChanged
|> InlineEdit.withOnSave SaveName
|> InlineEdit.withOnCancel CancelName
|> InlineEdit.toMarkup themeSee: https://www.patternfly.org/components/inline-edit
Construct an InlineEdit with the given display value
Set the current text value
Set the placeholder text shown when value is empty
Put the component into editing mode (shows input + save/cancel)
Disable editing (hides the edit button)
Message sent when the edit (pencil) button is clicked
Message sent as the user types (provides new string value). Required for the text input to function in editing mode.
Message sent when the save (✓) button is clicked
Message sent when the cancel (×) button is clicked
Render the InlineEdit as an Element msg
Opaque InlineEdit type