fn view_config(config: &FractalConfig) -> Node<Msg> {
    div![
        attrs! {At::Id => "config"},
        match config {
            FractalConfig::NoConfig => div!["No configuration for this fractal"],
            FractalConfig::TurtleCurveConfig { iteration } => div![
                div![
                    label![attrs! {At::For => "iteration"}, "Iterations"],
                    input![
                        attrs! {
                            At::Id => "iteration",
                            At::Type => "number",
                            At::Required => "true",
                            At::Value => iteration,
                            At::Min => 0,
                        },
                        ev(Ev::Input, validate_input),
                    ]
                ],
                p![
                    "Draws the fractal using a turtle animation."
                ],
            ],
            FractalConfig::EscapeTimeConfig {
                max_iterations,
                power,
            } => div![
                div![
                    label![attrs! {At::For => "max_iterations"}, "Max Iterations"],
                    input![
                        attrs! {
                            At::Id => "max_iterations",
                            At::Type => "number",
                            At::Required => "true",
                            At::Value => max_iterations,
                            At::Min => 1,
                        },
                        ev(Ev::Input, validate_input),
                    ],
                ],
                div![
                    label![attrs! {At::For => "power"}, "Power"],
                    input![
                        attrs! {
                            At::Id => "power",
                            At::Type => "number",
                            At::Required => "true",
                            At::Value => power,
                            At::Min => 1,
                        },
                        ev(Ev::Input, validate_input),
                    ],
                ],
                p![
                    "Renders the escape time fractal using the provided parameters. After the fractal renders, you can use a pointer to select an area to zoom in on."
                ],
            ],
        },
    ]
}
/// Renders/re-renders the configuration for the specified FractalConfig.
///
/// It renders different fields based on the "kind" of fractal, and sets up HTML form validations
/// to ensure that the model is only updated if the configuration is valid.
Renders/re-renders the configuration for the specified FractalConfig.
It renders different fields based on the "kind" of fractal, and sets up HTML form validations
to ensure that the model is only updated if the configuration is valid.
Renders / re - renders the configuration for the specified FractalConfig . It renders different fields based on the " kind " of fractal and sets up HTML form validations to ensure that the model is only updated if the configuration is valid .
fn view_config(config: &FractalConfig) -> Node<Msg> {
    div![
        attrs! {At::Id => "config"},
        match config {
            FractalConfig::NoConfig => div!["No configuration for this fractal"],
            FractalConfig::TurtleCurveConfig { iteration } => div![
                div![
                    label![attrs! {At::For => "iteration"}, "Iterations"],
                    input![
                        attrs! {
                            At::Id => "iteration",
                            At::Type => "number",
                            At::Required => "true",
                            At::Value => iteration,
                            At::Min => 0,
                        },
                        ev(Ev::Input, validate_input),
                    ]
                ],
                p![
                    "Draws the fractal using a turtle animation."
                ],
            ],
            FractalConfig::EscapeTimeConfig {
                max_iterations,
                power,
            } => div![
                div![
                    label![attrs! {At::For => "max_iterations"}, "Max Iterations"],
                    input![
                        attrs! {
                            At::Id => "max_iterations",
                            At::Type => "number",
                            At::Required => "true",
                            At::Value => max_iterations,
                            At::Min => 1,
                        },
                        ev(Ev::Input, validate_input),
                    ],
                ],
                div![
                    label![attrs! {At::For => "power"}, "Power"],
                    input![
                        attrs! {
                            At::Id => "power",
                            At::Type => "number",
                            At::Required => "true",
                            At::Value => power,
                            At::Min => 1,
                        },
                        ev(Ev::Input, validate_input),
                    ],
                ],
                p![
                    "Renders the escape time fractal using the provided parameters. After the fractal renders, you can use a pointer to select an area to zoom in on."
                ],
            ],
        },
    ]
}
fn view_config ( config : & FractalConfig ) -> Node < Msg > { div ! [ attrs { At Id " " } match config { FractalConfig NoConfig div [ " " ] FractalConfig TurtleCurveConfig { iteration } div [ div [ label [ attrs { At For " " } " " ] input [ attrs { At Id " " At Type " " At Required " " At Value iteration At Min 0 } ev ( Ev Input validate_input ) ] ] p [ " " ] ] FractalConfig EscapeTimeConfig { max_iterations power } div [ div [ label [ attrs { At For " " } " " ] input [ attrs { At Id " " At Type " " At Required " " At Value max_iterations At Min 1 } ev ( Ev Input validate_input ) ] ] div [ label [ attrs { At For " " } " " ] input [ attrs { At Id " " At Type " " At Required " " At Value power At Min 1 } ev ( Ev Input validate_input ) ] ] p [ " " ] ] } ] }
Renders/re-renders the configuration for the specified FractalConfig.
Renders / re - renders the configuration for the specified FractalConfig .
config
&FractalConfig