SELECTElement constructor

SELECTElement({
  1. Map<String, dynamic>? attributes,
  2. Object? id,
  3. Object? name,
  4. Object? type,
  5. Object? classes,
  6. Object? style,
  7. Object? options,
  8. bool? multiple,
  9. bool? hidden,
  10. bool disabled = false,
  11. bool commented = false,
})

Implementation

SELECTElement(
    {Map<String, dynamic>? attributes,
    Object? id,
    Object? name,
    Object? type,
    Object? classes,
    Object? style,
    Object? options,
    bool? multiple,
    bool? hidden,
    bool disabled = false,
    bool commented = false})
    : super._('select',
          id: id,
          classes: classes,
          style: style,
          attributes: {
            ...?attributes,
            if (name != null) 'name': name,
            if (type != null) 'type': type,
            if (multiple != null && multiple) 'multiple': true,
            if (disabled) 'disabled': disabled,
          },
          content: OPTIONElement.toOptions(options),
          hidden: hidden,
          commented: commented);