Select single conditional styling
Summary
Make certain values bold based on other field values on the same recordContent
I have a select single that I would like to display certain values in bold. I can easily make all the values bold using a span and stype property as below:
<template slot="itemTemplate">
<span style = "font-weight:bold;"><oj-bind-text value="[[ $current.data.name ]]"></oj-bind-text></span>
</template>
I am also able to make certain values blue based on other criteria on the same record like default_template and editable as below:
<span :style.color="[[ $current.data.default_template == 1 && $current.data.editable == 1 ? 'blue' : 'black' ]]"><oj-bind-text value="[[ $current.data.name ]]"></oj-bind-text>
0