pub trait ToEditorField {
// Required method
fn to_editor_field(
default: Option<impl Into<Self>>,
name: &'static str,
title: &'static str,
placeholder: Option<&'static str>,
validator: Option<&'static str>,
component_key: Option<&'static str>,
) -> EditorField
where Self: Sized;
}
Expand description
Convert an input type into a scalar_cms::EditorField