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 option elements. Refer to http://www.w3schools.com/tags/tag_option.asp
010 */
011@JsType( isNative = true, namespace = JsPackage.GLOBAL, name = "Object" )
012public class OptionProps
013  extends HtmlGlobalFields<OptionProps>
014{
015  @JsOverlay
016  @Nonnull
017  public final OptionProps disabled()
018  {
019    return disabled( true );
020  }
021
022  @JsOverlay
023  @Nonnull
024  public final OptionProps disabled( boolean b )
025  {
026    setDisabled( b );
027    return self();
028  }
029
030  @JsOverlay
031  @Nonnull
032  public final OptionProps label( String s )
033  {
034    setLabel( s );
035    return self();
036  }
037
038  @JsOverlay
039  @Nonnull
040  public final OptionProps selected()
041  {
042    return selected( true );
043  }
044
045  @JsOverlay
046  @Nonnull
047  public final OptionProps selected( boolean b )
048  {
049    setSelected( b );
050    return self();
051  }
052
053  @JsOverlay
054  @Nonnull
055  public final OptionProps value( String s )
056  {
057    setValue( s );
058    return self();
059  }
060}