anvil.designer Module

Functions

get_design_component(component_class) (more info)

Get the design-time class for a component class.


    get_design_name(component) (more info)

    Get the design-time name for a component, if available.


      get_designer_state(component) (more info)

      Get component-specific state managed by the designer.


        notify_interactions_changed(component) (more info)

        Notify the designer that available interactions may have changed.


          register_interaction(component, dom_element, [event="dblclick"], [callback=None]) (more info)

          Register a design-time mouse interaction callback for a component.


            request_form_property_change(requesting_component, form, property_name, property_value) (more info)

            Request a property change on a form selected by a form-property value.


              start_editing_form(requesting_component, form_property_value) (more info)

              Request that the designer switch to editing another form.


                start_editing_subform(form_component) (more info)

                Request that the designer start editing a nested form component.


                  start_inline_editing(component, property_name, [dom_element=None], [on_finished=None]) (more info)

                  Request inline editing for a string property in the designer.


                    update_component_properties(component, [properties], [layout_properties]) (more info)

                    Store updated component and container properties in the designer.


                      update_component_sections(component, [section_updates=None]) (more info)

                      Notify the designer that sections have moved, changed, or been removed.


                        Globals

                        in_designer (more info)

                        True when code is running in the Anvil designer, otherwise False.



                        Do you still have questions?

                        Our Community Forum is full of helpful information and Anvil experts.

                        anvil.designer