pub fn CodeEditor(props: CodeEditorProps) -> impl IntoViewExpand description
§Optional Props
- language:
impl Into<Signal<Language>> - content:
impl Into<Signal<String>> - theme:
impl Into<Signal<Theme>> - on_change:
Arc<dyn Fn(String) + Send + Sync> - on_ready:
Arc<dyn Fn(EditorHandle) + Send + Sync> - diagnostic_providers:
impl Into<Signal<Vec<DiagnosticProvider>>>- Reactive list of diagnostic providers. Each provider is called (debounced) when text changes. Results are merged and rendered as marker underlines. Providers can be swapped at runtime (e.g. when the language changes).
- diagnostic_debounce_ms:
i32- Override the debounce delay (in ms) before calling providers. Default: 300ms.
- completion_providers:
impl Into<Signal<Vec<crate::completion::CompletionProviderConfig>>>- Reactive list of completion providers.
- placeholder:
impl Into<Signal<String>>- Ghost text shown at line 1 col 1 when the editor is empty. Empty string (default) renders nothing.