Okay
  Public Ticket #3509407
using hex colors to color a cell
Closed

Comments

  • peter gariepy started the conversation

    How can I color a cell if I have the hex code in a field?

    Also, I'm linking to a google spreadsheet.  

    There are 2 extra lines of data at the top in the wpdatatable table, that are not in the google spreadsheet. See screen capture.  How do I fix that?

    Attached files:  Screenshot 2023-10-27 at 11.05.50 AM.png

  • peter gariepy replied

    Any feedback on my question?

  •  1,708
    Miloš replied

    Hello,

    To begin, I want to extend my heartfelt apologies for the delayed reply, 

    which is due to an unexpectedly high volume of inquiries. 

    We truly value your patience during this period.

    -

    1. In regards to using hex code in a field, i presume that code will be coming from your source cell from the Google Sheet?

    if that is the case, sorry to disappoint you, but any formatting applied in the original file (font families, color, size, fill color, etc.) will not be copied over to the wpDataTable, but you can make whatever adjustment you may need in WpDataTables.

    Please check the full list of limitations for our Google Spreadsheet Tables here.

    -

    If you need to set up some color/background color or add a custom CSS class based on a value from a field, please check our Conditional Formatting capabilities here.

    If you add a custom CSS class with a Conditional Rule, for example to a cell, Column, a row etc;


    You can then call that CSS class and add custom styles, if you need it only for one Table, add it to the Table's Customize/Custom CSS, 


     or if you wish to add a global custom style which is called for any Table that has that class, add the style to main plugin settings/Custom JS and CSS/Custom CSS.


    2. If you have any Formula in the Sheet that provides the data for the cells, please check our Guide here, how to use a Google Sheet with Formulas and out Plugin.

    In short, it is adding a new blank Sheet Tab with !importrange in Cell A1,  then using that Sheet to connect to our Table and provide the 'finished values' after the Formula.

    I hope that helps.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • peter gariepy replied

    Let me restate the issue:

    Table contains a column with a hex value.

    I want to color a cell with that hex value.

    I can do it with ninjatables. see screen capture.

    How?

    Attached files:  Screenshot 2023-10-31 at 9.08.24 AM.png

  •  1,708
    Miloš replied

    Hello,

    Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.

    -

    If i understood, with the Ninja Tables, you can somehow just input the hex color value from your Source Sheet cell, and the Table automatically recognises that it should color the cell just like that?

    1406133404.png

    Sorry, but in our Plugin that is not possible.

    As i mentioned earlier, these are the capabilities with our Plugin when you need to place colors on any cells :

    any formatting applied in the original file (font families, color, size, fill color, etc.) will not be copied over to the wpDataTable, but you can make whatever adjustment you may need in WpDataTables.

    Please check the full list of limitations for our Google Spreadsheet Tables here.

    -

    If you need to set up some color/background color or add a custom CSS class based on a value from a field, please check our Conditional Formatting capabilities here.

    If you add a custom CSS class with a Conditional Rule, for example to a cell, Column, a row etc;

    You can then call that CSS class and add custom styles, if you need it only for one Table, add it to the Table's Customize/Custom CSS, 

     or if you wish to add a global custom style which is called for any Table that has that class, add the style to main plugin settings/Custom JS and CSS/Custom CSS.

    2. If you have any Formula in the Sheet that provides the data for the cells, please check our Guide here, how to use a Google Sheet with Formulas and out Plugin.

    In short, it is adding a new blank Sheet Tab with !importrange in Cell A1,  then using that Sheet to connect to our Table and provide the 'finished values' after the Formula.


    I hope that helps. 

    Let me know if you have any additional questions, if you try any of these methods and if you need help with any of the details to set colors in our cells.


    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables