Table row color

Hi
I am working on the attached site
I need to change the color of specific rows according to some parameter
I cannot find a way to specify change of row color based on some data base argument
Any ideas?
In addition, items in the table that can be seen in the preview mode cannot be seen on the published site
Here is the relevant page
https://bestsiteisrael.wixsite.com/testsite/data-display

I don’t see any property that can be set on row for colors in the API Docs. If items can be seen on preview but not on published maybe the data is just in the sandbox collection? Have you synced data to live data?

Yes it is synced
Are you saying there is no solution to color rows as I want?

You can use design tools in WIX but I am not sure if by using code this is possible. I am the wrong person of giving you the final answer and hope someone in the team can add in here. As of using text you can get a hold on style attributes according to API Docs (https://www.wix.com/code/reference/$w.Text.html) but when you look at table and table rows there is style attribute.

I hope they answer you quickly.

Thanks Andreas

This is going to be some kind of second hand selling platform c2c and b2b
there are going to be different packages
for example free package will be white but payed package will be highlighted in Yellow

Hope someone can give me a solution

Hey,

Currently there is no possibility to set the color from the Code.

Good news are that we are working on adding this option and there will be possibility to store color in database and set background color for some elements. Also you will have possibility to change background color for some elements from the code.

Hi Israel,
check out our coming soon page.
once we provide the repeaters functionality, you’ll be able to design an item and repeat it multiple times.
each item can then be customized through code, to have the specific background you need.

as for the data not displaying properly on the published site,
check the permissions on the underlying collection.
if the data should be publicly available, make sure that “anonymous” users have read access.

good luck!

Any update on table styling (row color, cell color, background, etc.)?

How can I make the row in the table take a different color depending on the cell result
I have a column in the table that has a date
I want to calculate the duration
Example: If data entry is less than 12 hours, the row in the table is green
If data entry is more than 12 hours and less than 24 hours, the row in the table becomes yellow
If data entry exceeds 24 hours, the row in the table is red

Hey WIX - is there any news on this feature - ???

This post is from 2017 and it is being closed.

See the Wix Table Master app for more info.
https://support.wix.com/en/article/adding-and-setting-up-the-table-master-app

Step 5 | Customize the app design
Customize the design of the table using the options below:

Header/Footer: Customize the header and footer colors:

  • Color: Select the header and footer color.

  • Gradient: Select or deselect the Gradient checkbox to enable or disable the color gradient. If selected, select the gradient color.
    Title Background: Select the background color of the table title.
    Title Text: Select the color and font of the title text.
    Body Text: Select the color and font of the body text.
    Odd Row: Select the color of the odd rows.
    Even Row: Select the color of the even rows.
    Rover Hover: Select the color of the row on hover.
    Border: Select the border color and drag the slider to change the width.
    Inside Borders: Select the inner border color and drag the slider to change the width.
    Corner: Drag the slider to make the corners more round or square.

Or you can look at using repeaters instead.
https://www.wix.com/corvid/forum/community-discussion/highlight-repeater-row-onclick
https://www.wix.com/corvid/forum/community-discussion/solved-highlight-item-repeater-autocomplete-menu
https://www.wix.com/corvid/forum/community-discussion/setting-a-color-for-repeater-s-item
https://www.vorbly.com/Vorbly-Code/WIX-CODE-CHANGE-REPEATER-ITEM-COLOR