We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic options for a Toggles field work for 'text' and 'value' but the 'icon' key is ignored and only the label text is shown.
Providing an options array in the blueprint with text/value/icon works, doing the same with a query does not.
Kirby 4.1.1 No console errors.
blueprint:
test1: label: Test type: toggles labels: false options: - text: Option 1 value: o1 icon: text-left - text: Option 2 value: o2 icon: text-right test2: label: Test type: toggles labels: false grow: false options: type: query query: page.testArray text: "{{ item.text }}" value: "{{ item.value }}" icon: "{{ item.icon }}"
page method:
'testArray' => function () { return [ [ 'text' => 'Option 1', 'value' => 'o1', 'icon' => 'text-left', ], [ 'text' => 'Option 2', 'value' => 'o2', 'icon' => 'text-right', ], ]; },
Test 1 displays fine, Test 2 shows the (correct) labels instead of Icons
The text was updated successfully, but these errors were encountered:
Support icon and info for query and api options #6780
icon
info
2385db3
bd70863
✨ Support icon and info for query and api options
4932c6a
getkirby/kirby#6780 Signed-off-by: bnomei <b@bnomei.com>
No branches or pull requests
Dynamic options for a Toggles field work for 'text' and 'value' but the 'icon' key is ignored and only the label text is shown.
Providing an options array in the blueprint with text/value/icon works, doing the same with a query does not.
Kirby 4.1.1
No console errors.
blueprint:
page method:
Test 1 displays fine, Test 2 shows the (correct) labels instead of Icons
The text was updated successfully, but these errors were encountered: