vitalets / angular-xeditable

Edit in place for AngularJS
http://vitalets.github.io/angular-xeditable
MIT License
1.91k stars 403 forks source link

x-editable <Select> default option (text) for not selected option. #423

Closed RupenAnjaria closed 8 years ago

RupenAnjaria commented 8 years ago

Please refer to the example provided in angula-xeditable documentation. http://vitalets.github.io/angular-xeditable/#editable-table

if we click on "Edit" then the status column for second row shows blank option (as the value was not selected). I want to show a Text for the not selected option e.g. "-- Please Select --" instead of blank option. Kindly note that I would like to avoid to touch data (JS or JSON). It should be straight from HTML like we do for normal "Select" control.

Any reference? Thank you.

david12341235 commented 8 years ago

+1 It may not make sense as HTML in the element body, since that usually contains the display element (currently selected option). But maybe as an extra attribute like "e-placeholder"?

ckosloski commented 8 years ago

This was fixed with pr #429