Show check/x for boolean values in spreadsheet view
Opened this issue · 0 comments
sumanthratna commented
attempted:
live/templates/spreadsheet.html
Lines 147 to 159 in 196db5e
<!-- <span> | |
<td x-show="typeof row[heading.key] === 'boolean'" class="border-dashed border-t border-gray-200" :heading="heading.key"> | |
<svg class="w-6 h-6 mx-auto" x-show="row[heading.key]" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"> | |
heroicon: check | |
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" /> | |
</svg> | |
<svg class="w-6 h-6 mx-auto" x-show="!row[heading.key]" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"> | |
heroicon: x | |
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" /> | |
</svg> | |
</td> | |
<td x-show="typeof row[heading.key] !== 'boolean'" class="border-dashed border-t border-gray-200 px-6 py-3 items-center" x-text="row[heading.key]" :heading="heading.key"></td> | |
</span> --> |