Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class DropDownComponent extends React.Component<DropDownComponentProps> {
this.props.selectedIndex !== undefined &&
this.props.selectedIndex > -1
? this.props.options[this.props.selectedIndex].label
: "-- Select --"
: this.props.placeholder || "-- Select --"
}
/>
</StyledSingleDropDown>
Expand Down
10 changes: 10 additions & 0 deletions app/client/src/widgets/DropdownWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@ class DropdownWidget extends BaseWidget<DropdownWidgetProps, WidgetState> {
},
dependencies: ["selectionType"],
},
{
helpText: "Input Place Holder",
Comment thread
Tooluloope marked this conversation as resolved.
Outdated
propertyName: "placeholderText",
label: "Placeholder",
controlType: "INPUT_TEXT",
placeholderText: "Enter placeholder text",
isBindProperty: true,
isTriggerProperty: false,
validation: { type: ValidationTypes.TEXT },
},
{
propertyName: "isFilterable",
label: "Filterable",
Expand Down