浏览代码

add disable prop to selectMenu (#1102)

Reed Trevelyan 3 年之前
父节点
当前提交
0b48d46eef
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      components.go

+ 1 - 0
components.go

@@ -180,6 +180,7 @@ type SelectMenu struct {
 	// If MaxValues or MinValues are greater than one then the user can select multiple items in the component.
 	MaxValues int                `json:"max_values,omitempty"`
 	Options   []SelectMenuOption `json:"options"`
+	Disabled  bool               `json:"disabled"`
 }
 
 // Type is a method to get the type of a component.