Skip to content

Commit a6273de

Browse files
committed
wip: Provide ready-made configuration snippets to help set up the app's configuration file #1140
1 parent a46c9a2 commit a6273de

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

extras/configs/panes.top.js

+11-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = {
2020
class: 'text-grey-7'
2121
}
2222
},
23-
searchText: (options) => {
23+
searchFilter: (options) => {
2424
// fields: fields to search on
2525
const fields = options?.fields || ['name', 'description']
2626
return {
@@ -29,6 +29,16 @@ module.exports = {
2929
fields
3030
}
3131
},
32+
timeFilter: (options) => {
33+
return Object.assign({
34+
component: 'collection/KTimeFilterControl'
35+
}, options)
36+
},
37+
tagsFilter: (options) => {
38+
return Object.assign({
39+
component: 'collection/KTagsFilterControl'
40+
}, options)
41+
},
3242
locateUser: (options) => {
3343
// renderer: renderer to be used to display the action
3444
const renderer = options?.renderer || 'button'

extras/configs/stickies.js

+8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
module.exports = {
2+
filterView: (options) => {
3+
return Object.assign({
4+
id: 'filter-view-sticky',
5+
position: 'top',
6+
offset: [0, 50],
7+
component: 'collection/KFilterView'
8+
})
9+
},
210
position: (options) => {
311
return Object.assign({
412
id: 'position-sticky',

0 commit comments

Comments
 (0)