Code Monkey home page Code Monkey logo

Comments (4)

sgobotta avatar sgobotta commented on May 28, 2024 1

@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.

sebastianlp avatar sebastianlp commented on May 28, 2024

If I can help with something, share thoughts, discuss, whatever, contact me!

from vue-admin.

sgobotta avatar sgobotta commented on May 28, 2024

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.

sgobotta avatar sgobotta commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.