mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
✨ Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964
This commit is contained in:
parent
1a02d153e6
commit
253ad72913
4 changed files with 13 additions and 0 deletions
|
|
@ -247,6 +247,7 @@ func NewGalleryView() (ret *View) {
|
||||||
type Viewable interface {
|
type Viewable interface {
|
||||||
Filterable
|
Filterable
|
||||||
Sortable
|
Sortable
|
||||||
|
Groupable
|
||||||
Calculable
|
Calculable
|
||||||
|
|
||||||
GetType() LayoutType
|
GetType() LayoutType
|
||||||
|
|
|
||||||
|
|
@ -300,3 +300,7 @@ func filter0(collection Collection, attrView *AttributeView) {
|
||||||
}
|
}
|
||||||
collection.SetItems(items)
|
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) {
|
func (gallery *Gallery) Filter(attrView *AttributeView) {
|
||||||
filter0(gallery, attrView)
|
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) {
|
func (table *Table) Filter(attrView *AttributeView) {
|
||||||
filter0(table, attrView)
|
filter0(table, attrView)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (table *Table) Group(attrView *AttributeView) {
|
||||||
|
group0(table, attrView)
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue