tobimori / kirby-icon-field Goto Github PK
View Code? Open in Web Editor NEW๐ท๏ธ A simple Icon field plugin for Kirby CMS.
Home Page: https://getkirby.com/plugins/tobimori/icon-field
License: MIT License
๐ท๏ธ A simple Icon field plugin for Kirby CMS.
Home Page: https://getkirby.com/plugins/tobimori/icon-field
License: MIT License
Kirby 4-alpha.5 introduces a new Multi select field which results in this plugin not working anymore ๐ฆ
Last one (sorry for filling your issues here!):
We have a large collection of icons which will always be loaded in full on page load (3.5 MB in our case).
It would be great if icons would only be fetched when opening the picklist and if there was server side filtering applied.
I know this is an issue of the core as well, see getkirby/kirby#6043, but I think with icon sets this will become an issue for this plugin quicky.
I found this treat in the plugin definition:
/**
* Enable/disable the search in the dropdown
* Also limit displayed items (display: 20)
* and set minimum number of characters to search (min: 3)
*/
It would be great to have this documented in the readme.
Kirby 4 has this definition in its styles:
:where(svg) {
fill: currentColor;
}
This can render outline icons into white/black boxes.
I'm not sure if there is a way to reset this for icons within this plugin's components and default to the fill
attribute in the markup. But it would be great if:
fill
in the blueprint orFor ignoring certain icons, or simply only indexing a selection.
Since the latest kirby version I cannot pick an icon. with the beta-2 of kirby it worked fine.
If an icon is already selected and I want to delete it, the following error shows in the console:
index.min.js:1 TypeError: Cannot read properties of undefined (reading 'move')
And there are also a lot of deprecated warnings:
index.min.js:1 Problem with plugin trying to register component "k-icon-selector-dropdown": cannot extend non-existent component "k-selector-dropdown"
index.min.js:1 Problem with plugin trying to register component "k-icon-selector": cannot extend non-existent component "k-selector"
Will have to investigate further, but in some cases the field didn't load on the production server of Vierbeiner in Not. Seemingly fixed itself by removing 'extends' => 'tags'
line and adding it again.
kirby v4 beta2
kirby icon-field 2.0.0-rc.3
Maybe it is a good idea to somehow store in the config if you want to color the fill or the stroke from the icons in the panel.
For e.g. if you use feather icons, the iconfont has outlines only, so the icons currently appear as "white blocks" in the dropdown.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.