Comments (4)
@sebastianlp thanks for sharing your idea :) I edited the title a little bit so that we understand what we will be dealing with in this issue. I'll be taking a look as soon as I can!
from vue-admin.
If I can help with something, share thoughts, discuss, whatever, contact me!
from vue-admin.
I used this issue and the information provided to start an experimental implementation using functional rendering.
I first created a custom component as a user and tried to wrap key form elements, such as inputs and buttons, with some sort of core wannabe components, hoping I could then inject functionality into the native ones chosen by the user (v-text-field, v-btn, from vuetify, etc...). Diving for their children to inject functions on click or input/change events didn't seem to be as easy as I thought, though it doesn't seem to be impossible to implement, but a little dirty. I left a few Vue functional components to keep experimenting, that can work as wrappers for other components provided by a user.
I figured we can pass vue components as props to our Resource core component. All this work led me to build a simple and dynamic api that is kind of injected into components provided by a user for a specific view, Create for example. This approach continues in #42
from vue-admin.
Now that #42 is merged, we're ready to think about functional rendering on those built-in components Vue-Admin will automatically provide when declaring a Resource instance.
Closing this and continues in #72
from vue-admin.
Related Issues (20)
- Consider npm audit checks / autofixes to be added to CI HOT 1
- Update npm prepublish script to prepare HOT 1
- Route bindings module is too coupled to the store utilities
- As a User I want to be notified when I successfully log in HOT 1
- Add code of conduct HOT 1
- Add contribution guidelines HOT 1
- User extraction may fail for different backends
- Refactor the authlayout snackbar to use the Alerts system
- As a user I want to provide my own subscriptions to the Resource Alert system HOT 1
- Defaut redirect object should contemplate non-existent routes
- Update contributing documentation HOT 1
- Configure automatic test coverage report HOT 1
- The Admin component ignores custom unauthorized layouts HOT 2
- Improve unit tests: Sidebar component HOT 1
- Actions and Ui Component HOT 1
- Implement unit tests for the Spinner component
- Implement Unit tests for the DeleteButton component
- Implement Unit tests for the DateField component
- Implement Unit tests for the EditButton component
- NPM fails 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 vue-admin.