001package react4j.dom.proptypes.html.attributeTypes; 002 003import java.lang.annotation.Documented; 004import javax.annotation.Nonnull; 005import org.intellij.lang.annotations.MagicConstant; 006 007/** 008 * An enumeration specifying the HTTP method to submit the form with. 009 */ 010@Documented 011@MagicConstant( valuesFromClass = FormMethod.class ) 012public @interface FormMethod 013{ 014 /** 015 * The POST method; form data sent as the request body. 016 */ 017 @Nonnull 018 String post = "post"; 019 /** 020 * The GET method; form data appended to the action URL with a ? separator. Use this method when the form has no side-effects. 021 */ 022 @Nonnull 023 String get = "get"; 024 /** 025 * When the form is inside a <dialog>, closes the dialog on submission. 026 */ 027 @Nonnull 028 String dialog = "dialog"; 029}