001package react4j.dom.proptypes.html; 002 003import javax.annotation.Nonnull; 004import jsinterop.annotations.JsOverlay; 005import jsinterop.annotations.JsPackage; 006import jsinterop.annotations.JsType; 007 008/** 009 * Props for optgroup elements. Refer to http://www.w3schools.com/tags/tag_optgroup.asp 010 */ 011@JsType( isNative = true, namespace = JsPackage.GLOBAL, name = "Object" ) 012public class OptGroupProps 013 extends HtmlGlobalFields<OptGroupProps> 014{ 015 @JsOverlay 016 @Nonnull 017 public final OptGroupProps disabled() 018 { 019 return disabled( true ); 020 } 021 022 @JsOverlay 023 @Nonnull 024 public final OptGroupProps disabled( boolean b ) 025 { 026 setDisabled( b ); 027 return self(); 028 } 029 030 @JsOverlay 031 @Nonnull 032 public final OptGroupProps label( String s ) 033 { 034 setLabel( s ); 035 return self(); 036 } 037}