ButtonType

Follow

Comments

9 comments

  • Avatar
    Jeroen Baert

    Is there a way to set a color per button?

    For example, in row 1, I want a yellow & red, in row 2 a yellow & blue, row 3 a blue & red,... No logic, just manual selection?

     

  • Avatar
    Awesome Table

    Hello Jeroen Baert,

    you can use this keyword in this way : buttonType(A,B)

    When you reference a column as the button color, it will pull the value of this column for each column as the button's color.

    Nicolas

  • Avatar
    Jeroen Baert

    Simple and elegant, strange I did not think of that. Thanks!

  • Avatar
    Clément Thirode

    Hi,

    With ButtonType is it possible to define target property to "_self" so that the link open in the same window?

    Clement

  • Avatar
    Awesome Table (Edited )

    Hi Clément,

    You need to use "target=_top" instead of "target=_blank" to open the link in the same window.

    Thomas

  • Avatar
    Clément Thirode

    Hi Thomas,

    Thanks for your reply, but where can I put this parameter?

    I followed your example so in my data sheet, I have one column with urls (say column A) and another which name is Book and type is typebutton(A,COLOR). In the template I only use {{Book}} to show the button. 

    So I have no reference to a html <a> link to insert target=_top parameter

    Does that make sense or I'm missing something?

    Clement

  • Avatar
    roshind vp

    Hi
    How to change color of the button after click?

    roshind

  • Avatar
    Awesome Table

    Hello Clément,

    I'm sorry, I forgot to specify it is unfortunately not possible for some reasons security.

    So you have to create your button with HTML and CSS.

    Thomas

  • Avatar
    Awesome Table (Edited )

    Hello Roshind,

    If you want to change the color of your button after click, you have to inspect the code to find out which class you need to change. You also have to add the property ":visited" to this class in your template sheet (https://www.w3schools.com/cssref/sel_visited.asp).

    Here is an article that explains how to use inspector on chrome: https://developers.google.com/web/tools/chrome-devtools/inspect-styles/ .

    Thomas