-
+ ().unwrap();
+ let property = input_element.value();
+ if !property.is_empty() {
+ // Extract the coded name from the selected value
+ let coded_name = property.split(" - ").next().unwrap_or(&property).to_string();
+
+ // Add the property using the coded name
+ add_property(coded_name);
+
+ // Clear the input field
+ input_element.set_value("");
+ }
+ }
+ } />
-