Hi There;
I have started to use Grav as personal website. I have been struggling for adding some widget options into tablesort plug in. Since I am new into grav, I am not sure that if the issue is grav related or the plugin. But for me it seems like it is grav related. So I am writing in here.
The problem is: I want to configure plugin in admin page, with the frontmatter.
I have added following configs and it works fine as excepted.
tablesorter:
active: true
include_widgets: true
themes: metro-dark
args:
1:
widgets:
- zebra
- filter
- widget-filter-formatter-select2
widgetOptions:
filter_selectSource:
1:
- foo
- yoo
filter_reset: button.reset
filter_saveFilters: true
filter_matchType:
input: match
select: match
sortList:
-
- 0
- 0
The problem start when I try to add setting for widget-filter-formatter-select2 function. I have to add key:value into widget options. But when I type in console and save, my key:value input is reformated into a list type.
filter_formatter:
0: function(){}
1: function(){}
Reformated into:
filter_formatter:
- function(){}
- function(){}
Which is wrongs for the function and does not work.
Also I have tried editing file from console, but the arguments still parsed into wrong way.
I have also tried some non-sense key:value for testing purposes, and they were all turned into list.
Does anyone has a suggestion. Where should I look into?