mirror of https://github.com/anoshenko/rui.git
TableView fixing
This commit is contained in:
parent
fd6bf1ef44
commit
34478c5ff1
|
|
@ -1521,7 +1521,7 @@ function setTableCellCursorByID(tableID, row, column) {
|
||||||
function setTableCellCursor(element, row, column) {
|
function setTableCellCursor(element, row, column) {
|
||||||
const cellID = element.id + "-" + row + "-" + column;
|
const cellID = element.id + "-" + row + "-" + column;
|
||||||
const cell = document.getElementById(cellID);
|
const cell = document.getElementById(cellID);
|
||||||
if (!cell || cell.getAttribute("inert") != null) {
|
if (!cell || cell.getAttribute("data-non-selectable") == 1) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1712,7 +1712,7 @@ function setTableRowCursorByID(tableID, row) {
|
||||||
function setTableRowCursor(element, row) {
|
function setTableRowCursor(element, row) {
|
||||||
const tableRowID = element.id + "-" + row;
|
const tableRowID = element.id + "-" + row;
|
||||||
const tableRow = document.getElementById(tableRowID);
|
const tableRow = document.getElementById(tableRowID);
|
||||||
if (!tableRow || tableRow.getAttribute("inert") != null) {
|
if (!tableRow || tableRow.getAttribute("data-non-selectable") == 1) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1122,7 +1122,7 @@ func (table *tableViewData) htmlSubviews(self View, buffer *strings.Builder) {
|
||||||
buffer.WriteString(` onclick="tableRowClickEvent(this, event)"`)
|
buffer.WriteString(` onclick="tableRowClickEvent(this, event)"`)
|
||||||
|
|
||||||
if allowRowSelection != nil && !allowRowSelection.AllowRowSelection(row) {
|
if allowRowSelection != nil && !allowRowSelection.AllowRowSelection(row) {
|
||||||
buffer.WriteString(` inert`)
|
buffer.WriteString(` data-non-selectable=1`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1206,7 +1206,7 @@ func (table *tableViewData) htmlSubviews(self View, buffer *strings.Builder) {
|
||||||
if selectionMode == CellSelection {
|
if selectionMode == CellSelection {
|
||||||
buffer.WriteString(` onclick="tableCellClickEvent(this, event)"`)
|
buffer.WriteString(` onclick="tableCellClickEvent(this, event)"`)
|
||||||
if allowCellSelection != nil && !allowCellSelection.AllowCellSelection(row, column) {
|
if allowCellSelection != nil && !allowCellSelection.AllowCellSelection(row, column) {
|
||||||
buffer.WriteString(` inert`)
|
buffer.WriteString(` data-non-selectable=1`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue