Skip to main content

define_text_input

Macro define_text_input 

Source
macro_rules! define_text_input {
    ($definition:path) => { ... };
}
Expand description

Define a text input for the component.


const MY_TEXT_INPUT: ComponentInput = ComponentInput {
    input_id: 123,
    ty: ValueType::Text { length: 0..=40 },
    name: "My Text",
    description: "Text that will be shown inside the paragraph.",
};
const MY_TEXT_INPUT_ID: TextInputId = define_text_input!(MY_TEXT_INPUT);