AutocompleteSuggestion

data class AutocompleteSuggestion(val render: @Composable RowScope.() -> Unit, val onClick: (handleInput: (TextInputCommand) -> Unit) -> Unit)

Represents one suggestion for fast completion.

Constructors

Link copied to clipboard
constructor(render: @Composable RowScope.() -> Unit, onClick: (handleInput: (TextInputCommand) -> Unit) -> Unit)

Properties

Link copied to clipboard
val onClick: (handleInput: (TextInputCommand) -> Unit) -> Unit

Action to be executed when the user selects this suggestion. The method will be passed the editor's input handler as a parameter, so you can do edits to the source.

Link copied to clipboard
val render: @Composable RowScope.() -> Unit

Render the content of the popup menu item, which will correspond to the suggestion.