githubEdit

Editor

Inheritance: Elementarrow-up-right -> NavigableElementarrow-up-right -> VisualElementarrow-up-right -> Viewarrow-up-right -> InputViewarrow-up-right Xamarin.Forms documentation: Editor APIarrow-up-right / Guidearrow-up-right

For details on how the control actually works, please refer to the Xamarin.Forms documentationarrow-up-right.

Constructors

Constructors
Description

Editor(text: string, onTextChanged: string -> ‘msg)

Defines a Editor widget with a text and onTextChanged event.

Properties

Properties
Description

autoSize(value: EditorAutoSizeOption)

Sets a value that controls whether the editor will change size to accommodate input as the user enters it.

font(?size: float, ?namedSize: NamedSize, ?attributes: FontAttributes, ?fontFamily: string)

Sets the font family used

isTextPredictionEnabled(value: bool)

Sets whether the text prediction is enabled.

reference(value: ViewRef<Editor>)

Sets a ViewRef instance to retrieve the Xamarin.Forms.Editor instance associated to this widget

Events

Properties
Description

onCompleted(onCompleted: ‘msg)

Sets the event handler for the entry onCompleted event

Usages

Editor("Enter a description", TextChanged)
    .keyboard(Keyboard.Email)
    .textColor(Color.Red.ToFabColor(), Color.Blue.ToFabColor())
    .font(namedSize = NamedSize.Large, fontFamily = "Arial", attributes = FontAttributes.Bold)
    .textTransform(TextTransform.Lowercase)
    .onCompleted(TextCompleted)

Get access to the underlying Xamarin.Forms.Editor

Last updated