mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 03:40:04 -06:00
✨ Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964
This commit is contained in:
@@ -247,6 +247,7 @@ func NewGalleryView() (ret *View) {
|
||||
type Viewable interface {
|
||||
Filterable
|
||||
Sortable
|
||||
Groupable
|
||||
Calculable
|
||||
|
||||
GetType() LayoutType
|
||||
|
||||
@@ -300,3 +300,7 @@ func filter0(collection Collection, attrView *AttributeView) {
|
||||
}
|
||||
collection.SetItems(items)
|
||||
}
|
||||
|
||||
func group0(collection Collection, attrView *AttributeView) {
|
||||
// TODO 分组 Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964
|
||||
}
|
||||
|
||||
@@ -196,3 +196,7 @@ func (gallery *Gallery) Sort(attrView *AttributeView) {
|
||||
func (gallery *Gallery) Filter(attrView *AttributeView) {
|
||||
filter0(gallery, attrView)
|
||||
}
|
||||
|
||||
func (gallery *Gallery) Group(attrView *AttributeView) {
|
||||
group0(gallery, attrView)
|
||||
}
|
||||
|
||||
@@ -169,3 +169,7 @@ func (table *Table) Sort(attrView *AttributeView) {
|
||||
func (table *Table) Filter(attrView *AttributeView) {
|
||||
filter0(table, attrView)
|
||||
}
|
||||
|
||||
func (table *Table) Group(attrView *AttributeView) {
|
||||
group0(table, attrView)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user