/// <summary> /// Uses the web view URI property editor. /// </summary> /// <param name="editorDescriptorsFactory">The editor descriptors factory.</param> /// <returns>EditorDescriptorsFactory.</returns> /// <exception cref="ArgumentNullException">editorDescriptorsFactory</exception> /// <autogeneratedoc /> public static EditorDescriptorsFactory UseWebViewUriPropertyEditorWin(this EditorDescriptorsFactory editorDescriptorsFactory) { _ = editorDescriptorsFactory ?? throw new ArgumentNullException(nameof(editorDescriptorsFactory)); editorDescriptorsFactory.RegisterPropertyEditor( Xenial.Framework.WebView.PubTernal.WebViewEditorAliases.WebViewUriPropertyEditor, typeof(Uri), typeof(WebViewUriPropertyEditor), false ); return(editorDescriptorsFactory); }
/// <summary> /// Uses the token objects property editor. /// </summary> /// <param name="editorDescriptorsFactory">The editor descriptors factory.</param> /// <returns>EditorDescriptorsFactory.</returns> /// <exception cref="System.ArgumentNullException">editorDescriptorsFactory</exception> /// <autogeneratedoc /> public static EditorDescriptorsFactory UseTokenStringPropertyEditorsBlazor(this EditorDescriptorsFactory editorDescriptorsFactory) { _ = editorDescriptorsFactory ?? throw new ArgumentNullException(nameof(editorDescriptorsFactory)); editorDescriptorsFactory.RegisterPropertyEditor( Xenial.Framework.TokenEditors.PubTernal.TokenEditorAliases.TokenStringPropertyEditor, typeof(string), typeof(TokenStringPropertyEditor), false ); return(editorDescriptorsFactory); }
protected override void RegisterEditorDescriptors(EditorDescriptorsFactory editorDescriptorsFactory) { editorDescriptorsFactory.RegisterPropertyEditor(EditorAliases.RichTextPropertyEditor, typeof(byte[]), typeof(RichTextPropertyEditor), false); }
protected override void RegisterEditorDescriptors(EditorDescriptorsFactory editorDescriptorsFactory) { base.RegisterEditorDescriptors(editorDescriptorsFactory); editorDescriptorsFactory.RegisterListEditor(EditorAliases.GridListEditor, typeof(Object), typeof(BlazorGridListEditor), true); editorDescriptorsFactory.RegisterPropertyEditor(typeof(object), typeof(BlazorPropertyEditor), true); }