/// <summary> /// Register a display driver for use with a content field and all display modes and editors. /// This method will override previous registrations for the driver type, /// and can be called multiple times safely, to reconfigure an existing driver. /// </summary> public static ContentFieldOptionBuilder UseDisplayDriver <TContentFieldDisplayDriver>(this ContentFieldOptionBuilder builder) where TContentFieldDisplayDriver : class, IContentFieldDisplayDriver { return(builder.UseDisplayDriver(typeof(TContentFieldDisplayDriver))); }
/// <summary> /// Registers a display driver for use with a specific editor. /// This method will override previous registrations for the driver type, /// and can be called multiple times safely, to reconfigure an existing driver. /// </summary> public static ContentFieldOptionBuilder ForEditor(this ContentFieldOptionBuilder builder, Type fieldDisplayDriverType) { return(builder.ForEditor(fieldDisplayDriverType, d => true)); }