vitalets / angular-xeditable

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

Listbox custom background #663

Closed SebastianCBA closed 7 years ago

SebastianCBA commented 7 years ago

I have this editable-select

<span editable-select="sectorSheet.economy_id" e-name="economy_id" onshow="loadEconomies()" e-form="rowform" e-ng-options="e.id as e.text for e in economies.concat(emptyVal)" e-ng-change="popNew($data, 'div_economy_name')" ></span>

and emptyVal is called from scope like:

$scope.emptyVal = [{id: '0', text: 'Or Add New Value'}];

how I can change the background color for this option?

ckosloski commented 7 years ago

Try this css:

select option[value="0"] { /* value not val */
    background: rgba(200, 200, 200, 0.3);
}

Taken from here

SebastianCBA commented 7 years ago

perfect! thanks