Skip to main content

property_to_attribute

Function property_to_attribute 

Source
pub fn property_to_attribute(name: &str) -> Option<&'static str>
Expand description

Map a camelCase property name to its HTML attribute.

Returns None for names that follow standard camelCase ↔ kebab conversion.