Page 1 of 1

Turn off default card attributes

Posted: Thu Jan 12, 2023 1:53 am
by ahelis

We are binding our card data model into each card, and have run into a problem with the default supported attributes/fields in the taskboard. We configure the fields that get displayed, and one field name we use is 'description'. This renders inside our layout as configured, but we are getting a duplicate description rendered into the bodyItems section above our rendered component.

description-duplicating-body-items_01-11-2023.png
description-duplicating-body-items_01-11-2023.png (48.24 KiB) Viewed 1910 times

I am unable to find a simple way to ignore the ootb attributes that seem to be hard coded in the library. The only way I was able to 'hide' these was to target the dom nodes in the DOM, like:

<style>
    div[data-role="item-description"] {
        display: none;
    }
</style>

While hiding via css works I would like a cleaner approach preferably in configuration. Any suggestions are appreciated.


Re: Turn off default card attributes

Posted: Thu Jan 12, 2023 4:09 am
by ahelis

For Reference:
Taskboard Version: 5.2.3


Re: Turn off default card attributes

Posted: Thu Jan 12, 2023 8:30 am
by tasnim

Could you please upload the code that you're using to reproduce it? so we can debug it?


Re: Turn off default card attributes

Posted: Fri Jan 13, 2023 11:27 pm
by ahelis

Hi Tasnim,

Please close the ticket, we will ship with the css workaround. It seems that the card attribute 'description' is hard coded in the library and we have the same attribute from our model.

Thanks