Questions about Neotable and Grid - Forum

Forum Navigation
You need to log in to create posts and topics.

Questions about Neotable and Grid

Hi all, some question about neotable and grid using sqlite, that perhaps helps other to better understand

1- It's possible to click in one row and let that row selected using some color, or call some actions ?

2- It's possible to rigth click in one row and or call some actions, example bring some message or show a container window ?

3- It's possible to modify the property of tables in container in order to alternative the row's color inside the grid ?

 

Regards,

Sam

@lesanch take a look at neoTableInitTable command. The last parameter allows you to call a subroutine when the user select or click on a row field data. There are some predefined variables you can use from the subroutine:

[neoTableRow] is a JSON object with the data in the selected or clicked row.
[neoTableField] name of the clicked field.
[neoTableEvent] name of the event "click" "check" "uncheck"...
[neoTablePage] current neoTable page number.
[neoTableSearch] search string.

About table colors, just use CSS to style it as you want. Just add this to Project > Properties > Styles

th{
  background:navy;
  color:#ffffff;
}
tr:nth-child(odd){
  background: #b8d1f3;
}
tr:nth-child(even){
  background: #dae5f4;
}

Regards.

Hi @Luishp,

Thank you very much i will follow your recommendations.

Regards,

Sam