ITextEntryModal interface
Namespace: Arlecchino.Modals.Asking · Assembly: Arlecchino
A field that is typed into, shared by the text field and the number field so both edit and complain alike. What is typed and where the caret is come from ITextEntry.
public interface ITextEntryModal : IAffixedModal, ITextEntry
Implements IAffixedModal, ITextEntry
Implemented by NumberModal, TextModal
Properties
| Member | Summary |
|---|---|
Masked | Whether to draw dots instead of the text. The value itself stays as typed. |
Message | Validation message shown under the field, cleared by typing. |
Methods
| Member | Summary |
|---|---|
AcceptsCharacter(char) | Whether a character may be typed here at all. |
Properties in detail
Masked
public bool Masked { get; }
Whether to draw dots instead of the text. The value itself stays as typed.
Type bool
Message
public string? Message { get; set; }
Validation message shown under the field, cleared by typing.
Type string
Methods in detail
AcceptsCharacter(char)
public bool AcceptsCharacter(char character);
Whether a character may be typed here at all.
Parameters
| Name | Type | Description |
|---|---|---|
character | char | The character resolved from the key press. |
Returns bool — true when it should be inserted.