Comments (6)
I would actually add a weight
field to the definition, what do your think?
from ui_patterns.
The I was also thinking to introduce tags
on pattern definitions so that we can tag patterns and print better overview pages.
Also tags will be useful to propose patterns by contexts (which will be expressed with tags) so that we don't have a button pattern proposed as a page layout etc.
from ui_patterns.
I like the tags
idea, weight
could be hard work to update if there are many patterns? So maybe first sort by tags, then final sort by label alphabetically? :)
Maybe the tags could create a hierarchy, so when e.g. using atomic design principles one could tag a pattern with molecules
, text
and it would go in top level molecules group and in a text subgroup?
from ui_patterns.
I Love the idea of tags and weights. I would like to suggest that we add a weight to the tags. This way if I want to use atomic design great. But if I want to roll my own design structure I can decide which tags should receive a higher or lower weight.
from ui_patterns.
Yes we could use the same way Symfony uses tags on services, with weights and all.
from ui_patterns.
I wonder if using Drupal\Component\Plugin\CategorizingPluginManagerInterface
and Drupal\Core\Plugin\CategorizingPluginManagerTrait
is a place to start? Provides one level of categorization as well as label sorting out of the box and could be extended beyond that?
Initial implementation would look something like drclaw@fd94b87
from ui_patterns.
Related Issues (20)
- How to choose the variant when you use the twig "pattern" method HOT 3
- Sort patterns library alphabetically by ID on /patterns page HOT 1
- Not compatible with drupal/components v2 HOT 1
- Field Group not working HOT 1
- How to tell if in library preview mode from Twig template?
- Field group 3.x breaking change HOT 1
- PHP 8.1 compatibility HOT 4
- UI Patterns Views: Add the entity of row to pattern context
- UI Patterns Library: support UI Patterns Settings HOT 1
- Invalid argument supplied for foreach() in /var/www/html/www/modules/contrib/ui_patterns/modules/ui_patterns_library/src/Plugin/Deriver/LibraryDeriver.php on line 141
- Undefined index: label in Drupal\ui_patterns\Definition\PatternDefinitionField->__construct() (line 41 of /var/www/html/docroot/modules/contrib/ui_patterns/src/Definition/PatternDefinitionField.php) HOT 4
- It is possible to define different "preview" by "variants" ?
- Is this module still under development? HOT 1
- How to declare js trigger and element id for component behaviour? HOT 6
- Layout patterns HOT 1
- How to use an other pattern inside a pattern for the preview ? HOT 2
- Trouble with php8.1 HOT 2
- "X is not a directory" NotRegularDirectoryException after uninstalling a module HOT 2
- Warning: Undefined array key "node_title" HOT 1
- Warning: Undefined array key "label" in Drupal\ui_patterns\Definition\PatternDefinitionVariant->__construct() (line 35 of modules/contrib/ui_patterns/src/Definition/PatternDefinitionVariant.php). HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ui_patterns.