mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964
This commit is contained in:
parent
2e444d899b
commit
05f4d2995c
5 changed files with 89 additions and 124 deletions
|
|
@ -149,13 +149,13 @@ func (table *Table) GetFields() (ret []Field) {
|
|||
return ret
|
||||
}
|
||||
|
||||
func (table *Table) GetField(id string) Field {
|
||||
func (table *Table) GetField(id string) (ret Field, fieldIndex int) {
|
||||
for _, column := range table.Columns {
|
||||
if column.ID == id {
|
||||
return column
|
||||
return column, fieldIndex
|
||||
}
|
||||
}
|
||||
return nil
|
||||
return nil, -1
|
||||
}
|
||||
|
||||
func (*Table) GetType() LayoutType {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue