mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 16:28:49 +01:00
🎨 The database rollup field supports using the template field https://github.com/siyuan-note/siyuan/issues/12384
This commit is contained in:
parent
f6694810e2
commit
d67a041633
4 changed files with 22 additions and 6 deletions
|
|
@ -184,6 +184,15 @@ func (gallery *Gallery) GetField(id string) (ret Field, fieldIndex int) {
|
|||
return nil, -1
|
||||
}
|
||||
|
||||
func (gallery *Gallery) GetValue(itemID, keyID string) (ret *Value) {
|
||||
for _, card := range gallery.Cards {
|
||||
if card.ID == itemID {
|
||||
return card.GetValue(keyID)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (gallery *Gallery) GetType() LayoutType {
|
||||
return LayoutTypeGallery
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue