Input Select Option (Deprecated)

ui:inputSelectOption

Deprecated as of API version 47.0. We recommend migrating to Lightning Web Components and using the lightning-combobox component.

For Use In

Lightning Experience, Experience Builder Sites, Salesforce Mobile App, Lightning Out (Beta), Standalone Lightning App

The ui:inputSelectOption component is used in ui:inputSelect.

Deprecation Guidelines 

We recommend using Lightning Web Components whenever possible. When migrating to Lightning Web Components, use lightning-combobox for desktop devices. To support mobile screens, use the HTML select element.

For more information, see Aura Components in the ui Namespace Are Deprecated.

Attributes 

NameDescriptionTypeDefaultRequired
bodyThe body of the component. In markup, this is everything in the body of the tag.Aura.Component[]
classA CSS style to be attached to the component. This style is added in addition to base styles output by the component.String
disabledSpecifies whether the component should be displayed in a disabled state. Default value is "false".Booleanfalse
labelThe text displayed on the component.String
nameThe name of the component.String
textThe input value attribute.String
valueIndicates whether the status of the option is selected. Default value is “false”.Booleanfalse