init(_:prompt:onSubmit:)
Creates a TextFieldLink which when pressed will request text input from the user.
Declaration
@export(implementation) nonisolated init(_ titleResource: LocalizedStringResource, prompt: Text? = nil, onSubmit: @escaping (String) -> Void)Parameters
- titleResource:
A key for the TextFieldLink’s localized title, that describes the purpose of requesting text input.
- prompt:
Text which describes the reason for requesting text input.
- onSubmit:
An action to perform when text input has been accepted and dismissed.