MCPcopy
hub / github.com/siyuan-note/siyuan / Item

Interface Item

kernel/av/layout.go:237–250  ·  view source on GitHub ↗

Item 描述了一个项目的接口。 项目可以是表格行、卡片等。

Source from the content-addressed store, hash-verified

235// Item 描述了一个项目的接口。
236// 项目可以是表格行、卡片等。
237type Item interface {
238
239 // GetBlockValue 返回主键的值。
240 GetBlockValue() *Value
241
242 // GetValues 返回项目的所有字段值。
243 GetValues() []*Value
244
245 // GetValue 返回指定键 ID 的字段值。
246 GetValue(keyID string) (ret *Value)
247
248 // GetID 返回项目的 ID。
249 GetID() string
250}

Callers 23

RenderAttributeViewTableFunction · 0.65
sortAttributeViewRowFunction · 0.65
SortFunction · 0.65
filterByQueryFunction · 0.65
FilterFunction · 0.65
collectFieldValuesFunction · 0.65

Implementers 3

KanbanCardkernel/av/layout_kanban.go
TableRowkernel/av/layout_table.go
GalleryCardkernel/av/layout_gallery.go

Calls

no outgoing calls

Tested by

no test coverage detected