-
-
Notifications
You must be signed in to change notification settings - Fork 185
Open
Description
Description
In Kirby 3 we were able to provide icons to the tags-field options.
This doesn't work in Kirby5 anymore.
Looking at the issue :
- In Vue:
k-tag-inputneeds animageprop for setting the icon while theiconprop is provided. - In PHP:
Kirby\Options\Options::factoryis only acceptingiconand strippingimagefrom options.
Meanwhile, icons on tags is not documented, the feature still seems to be available, but bugged.
Expected behavior
I expect the tags to appear. (see screenshot below)
Screenshots
To reproduce
Paste this field in a blueprint:
buggytags:
type: tags
label: Tags
accept: options
options:
- value: sun
text: Sun
icon: sun
- value: wand
text: Wand
icon: wand
- value: star
text: Star
icon: starObserve:
Optionally: Select the vue k-tags-input in the Vue2 devtools and run this in the js console to make the tags appear :
$vm0.options = $vm0.options.map(function(opt){ opt.image ={type: 'icon', icon: opt.icon}; return opt});
Your setup
Kirby Version : 5.14 (latest)
Metadata
Metadata
Assignees
Labels
No labels