FormControl

Trait FormControl 

Source
pub(crate) trait FormControl: DomObject {
Show 14 methods // Required methods fn form_owner(&self) -> Option<DomRoot<HTMLFormElement>>; fn set_form_owner(&self, form: Option<&HTMLFormElement>); fn to_element(&self) -> &Element; // Provided methods fn is_listed(&self) -> bool { ... } fn set_form_owner_from_parser(&self, form: &HTMLFormElement, can_gc: CanGc) { ... } fn reset_form_owner(&self, can_gc: CanGc) { ... } fn form_attribute_mutated( &self, mutation: AttributeMutation<'_>, can_gc: CanGc, ) { ... } fn register_if_necessary(&self) { ... } fn unregister_if_necessary(&self) { ... } fn bind_form_control_to_tree(&self, can_gc: CanGc) { ... } fn unbind_form_control_from_tree(&self, can_gc: CanGc) { ... } fn get_form_attribute<InputFn, OwnerFn>( &self, attr: &LocalName, input: InputFn, owner: OwnerFn, ) -> DOMString where InputFn: Fn(&Self) -> DOMString, OwnerFn: Fn(&HTMLFormElement) -> DOMString, Self: Sized { ... } fn get_form_boolean_attribute<InputFn, OwnerFn>( &self, attr: &LocalName, input: InputFn, owner: OwnerFn, ) -> bool where InputFn: Fn(&Self) -> bool, OwnerFn: Fn(&HTMLFormElement) -> bool, Self: Sized { ... } fn is_candidate_for_constraint_validation(&self) -> bool { ... }
}

Required Methods§

Provided Methods§

Implementors§