html_export 0.1.1

Basic struct & enums to html file conversion crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::element::Element;

use super::field::{create_input, InputFieldConfig, NoConfigs};

/// Creates a `<input type="hidden">`.
///
/// - `html_configs` : The input html configs.
/// - `value` : The input's optional value.
pub fn create_hidden_input(html_configs: InputFieldConfig, value: Option<String>) -> Element {
    create_input(html_configs, "hidden".to_string(), NoConfigs::new(), value)
}