billowy-waiter-28954
03/01/2023, 9:21 AMpos(x, y);
to set x
and y
etc...bright-gpu-74537
03/01/2023, 9:21 AMremove
it".. but i get it though, i mean, you might also what to remove a visual and not hide it... (though i guess that would be more rare? π€ )billowy-waiter-28954
03/01/2023, 9:21 AMbillowy-waiter-28954
03/01/2023, 9:22 AMbillowy-waiter-28954
03/01/2023, 9:23 AMbillowy-waiter-28954
03/01/2023, 9:23 AMbillowy-waiter-28954
03/01/2023, 9:24 AMbright-gpu-74537
03/01/2023, 9:25 AMbright-gpu-74537
03/01/2023, 9:25 AMbillowy-waiter-28954
03/01/2023, 9:26 AMbright-gpu-74537
03/01/2023, 9:28 AMbright-gpu-74537
03/01/2023, 9:28 AMbright-gpu-74537
03/01/2023, 9:29 AMbillowy-waiter-28954
03/01/2023, 9:41 AMbillowy-waiter-28954
03/01/2023, 9:42 AMbillowy-waiter-28954
03/01/2023, 9:42 AMbillowy-waiter-28954
03/01/2023, 9:43 AMbright-gpu-74537
03/01/2023, 9:51 AMbright-gpu-74537
03/01/2023, 9:51 AMfull-journalist-82607
03/01/2023, 9:53 AMbright-gpu-74537
03/01/2023, 9:54 AMfull-journalist-82607
03/01/2023, 9:56 AMbright-gpu-74537
03/01/2023, 9:59 AMbright-gpu-74537
03/01/2023, 10:20 AMfull-journalist-82607
03/01/2023, 10:36 AMambitious-knife-25690
03/01/2023, 12:42 PMambitious-knife-25690
03/01/2023, 12:43 PMsalmon-knife-33932
03/01/2023, 3:29 PMTableView
table (id: table) you see in the screenshot is bound directly to a datasource:
table.dataSource = ArrayDataSource.fromArray(mySource);
I am using an Item Renderer to display a property of my source data (has_stream
) as a checkbox:
<item-renderer verticalAlign="center">
<checkbox id="has_stream" />
</item-renderer>
That's cool but actually I'd like to display an icon instead, let's say
icons/green.png if has_stream == true else red.png
.
Is it possible to do it directly in the .xml view without changing my source structure?
By doing some sort of binding expression?
Otherwise the only solution I see is to make a wrapper structure (IDataItem
..)
And wrap my mySource data to the wrapper and then bind the data directly
but I find it heavy...
Thanks youambitious-knife-25690
03/01/2023, 4:34 PMhx
.checkbox .checkbox-value:selected {
icon: "image.png";
}