mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 12:16:01 +00:00
data form - reload
This commit is contained in:
@@ -12,9 +12,20 @@
|
|||||||
// onClick: () => getCurrentDataForm().save(),
|
// onClick: () => getCurrentDataForm().save(),
|
||||||
// });
|
// });
|
||||||
|
|
||||||
|
registerCommand({
|
||||||
|
id: 'dataForm.refresh',
|
||||||
|
category: 'Data form',
|
||||||
|
name: 'Refresh',
|
||||||
|
keyText: 'F5',
|
||||||
|
toolbar: true,
|
||||||
|
icon: 'icon reload',
|
||||||
|
testEnabled: () => getCurrentDataForm() != null,
|
||||||
|
onClick: () => getCurrentDataForm().refresh(),
|
||||||
|
});
|
||||||
|
|
||||||
registerCommand({
|
registerCommand({
|
||||||
id: 'dataForm.copyToClipboard',
|
id: 'dataForm.copyToClipboard',
|
||||||
category: 'Data grid',
|
category: 'Data form',
|
||||||
name: 'Copy to clipboard',
|
name: 'Copy to clipboard',
|
||||||
keyText: 'Ctrl+C',
|
keyText: 'Ctrl+C',
|
||||||
disableHandleKeyText: 'Ctrl+C',
|
disableHandleKeyText: 'Ctrl+C',
|
||||||
@@ -63,7 +74,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
registerCommand({
|
registerCommand({
|
||||||
id: 'dataGdataFormrid.reconnect',
|
id: 'dataForm.reconnect',
|
||||||
category: 'Data grid',
|
category: 'Data grid',
|
||||||
name: 'Reconnect',
|
name: 'Reconnect',
|
||||||
testEnabled: () => getCurrentDataForm() != null,
|
testEnabled: () => getCurrentDataForm() != null,
|
||||||
@@ -206,6 +217,10 @@
|
|||||||
return former;
|
return former;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// export function getFormDisplay() {
|
||||||
|
// return formDisplay;
|
||||||
|
// }
|
||||||
|
|
||||||
export function navigate(command) {
|
export function navigate(command) {
|
||||||
if (onNavigate) onNavigate(command);
|
if (onNavigate) onNavigate(command);
|
||||||
}
|
}
|
||||||
@@ -237,6 +252,10 @@
|
|||||||
formDisplay.reload();
|
formDisplay.reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export async function refresh() {
|
||||||
|
formDisplay.reload();
|
||||||
|
}
|
||||||
|
|
||||||
export function filterSelectedValue() {
|
export function filterSelectedValue() {
|
||||||
formDisplay.filterCellValue(getCellColumn(currentCell), rowData);
|
formDisplay.filterCellValue(getCellColumn(currentCell), rowData);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user