Comments (3)
Hi @949mac
I feel it might be a bit complex but I think it can be achievable, I would need help.
This repository uses a methodology that overwrites the default Vue components of nova. To support the currently package features the PanelItem and Panel views have been overwritten.
I checked the Nova source codes and I think I have a list of files that should be overwritten to support the feature you are bringing up.
I think those files, if we implement them in this repository in the same way that it was implemented in:
https://github.com/demency/nova-gridder/blob/master/resources/js/components/PanelItem.vue
https://github.com/demency/nova-gridder/blob/master/resources/js/components/Panel.vue
To clarify how this plugin works:
This plugin add meta to the field using a macro of Field class to merge extra meta attributes. (Done on NovaGridderServiceProvider)
As Panel do a "v-for" of Fields, so, a flex and flex-wrap classes must be added to panel container if the field has gridder attribute defined (Nova gridder installed) and add w-full or panelSize option to field container. i think so
As PanelItem is the per field on view component, if field implements gridder attributes, that attributes will be pushed as classes to the field name, container or w/e.
To move forward with the issue I would like to see if you could identify the lines that should be modified in the next files:
- src/components/Forms/DefaultField.vue
- src/components/Forms/FieldWrapper.vue
- src/components/Forms/HelpText.vue
- src/components/Forms/Label.vue
- src/components/Forms/Panel.vue
I think this change would not take more than 30 lines, the complexity is in knowing what each thing does and what classes should be applied to which elements.
Help to ask some questions:
¿Which divs are the panel, label or content?
¿New meta attributes are required? or ¿Default values brokes the display?
¿New way to inject classes to components is possible, instead overwrite?
from nova-gridder.
Probably that feature will be added on this weekend
from nova-gridder.
I will delay this issue a week. I have a little idea how can i do this.
from nova-gridder.
Related Issues (6)
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 nova-gridder.