pub trait GenerateHtml {
    fn generate_html(
        url_action: Option<&str>,
        http_method: Option<HttpMethod>,
        enctype: Option<Enctype>,
        service_name: &str,
        model_name: &str,
        fields_name: &Vec<String>,
        widget_map: &HashMap<String, Widget>
    ) -> Result<String, Box<dyn Error>> { ... } }
Expand description

Rendering HTML-controls code for Form.

Provided Methods

Rendering HTML-controls code for Form. Hint: If necessary, customize the code generation yourself using html and css классы from Bootstrap, Material Design, etc.

// For code customization.
#[Model(
    is_use_custom_html = true,
)]
#[derive(Serialize, Deserialize, Default, Debug)]
pub struct ModelName {
    Add your fields ...
}

impl GenerateHtml for ModelName {
    fn generate_html(&self) {
        Add your custom code...
   }
}

Implementors