Our state of the art Gantt chart


Post by bhavadharanisure »

Hi,
We have a requirement where we need closable chip in the tbar of tabpanel.

{
              type: "chipview",
              valueProperty: "items",
              itemsFocusable: false,
              closable: true,
              itemTpl: ()=> {
                filterlist.selectedField;
              },
              style: {
                flexFlow: "row wrap",
                display: "flex",
                padding: "5px 0 3px 0",
              },
            },

we used the above code but got the below attached error

err.PNG
err.PNG (43.17 KiB) Viewed 101 times

Where did we go wrong?
How can I bring the chips view in tbar? the chips data depend on the external array "filterlist" as you can see in itemtpl and not on the fields.


Post by tasnim »

Hi,
Need to check what is inside filterlist. Need to debug it. Could you please provide a runnable test case so it'll be better to assist you?

By the way, I did it like this and it works fine

    tbar : [
        {
            type: 'chipview',
            items : [
                {
                    text: 'Hello'
                }
            ],
        }
    ],
Attachments
Screenshot 2022-09-30 120807.png
Screenshot 2022-09-30 120807.png (8.97 KiB) Viewed 98 times

Post Reply