You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 28, 2025. It is now read-only.
.setDesc('Select file to use as template for database columns. Click the button to apply the template.')
23
30
.addDropdown((dropdown)=>{
24
31
dropdown
@@ -38,6 +45,23 @@ export class UseFileFieldsAsTemplateColumnsHandler extends AbstractSettingsHandl
38
45
newNotice(`${Object.keys(columns).length} Columns were loaded from file "${tfile.basename}"! Close this dialog to show the database changes`);
39
46
});
40
47
});
48
+
49
+
/*********************************
50
+
* TEMPLATE OF ALL POSSIBLE FIELDS
51
+
*********************************/
52
+
newSetting(template_section)
53
+
.setName('Use all fields')
54
+
.setDesc('Add all possible columns of your actual source of the database')
55
+
.addButton((button)=>{
56
+
button.setIcon("create-new")
57
+
.setTooltip("Load columns from file")
58
+
.onClick(async(): Promise<void>=>{
59
+
constcolumns=obtainColumnsFromRows(view.rows);
60
+
view.diskConfig.yaml.columns=columns;
61
+
view.diskConfig.saveOnDisk();
62
+
newNotice(`${Object.keys(columns).length} Columns were loaded from all fields avaliable in the current source! Close this dialog to show the database changes`);
0 commit comments