소스 검색

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.