Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

As a User I can declare Actions in the template (List, Create, Edit, View) as children of a Resource component #72

Closed
sgobotta opened this issue Jan 25, 2019 · 0 comments
Assignees
Labels
core ui UI components that will be part of the core source code In progress refactor Ch, ch, ch, ch, changes!

Comments

@sgobotta
Copy link
Member

sgobotta commented Jan 25, 2019

The current situation is:

  • Resource accepts a list of objects that declare different attributes of a resource (entity in a db)
  • Resource accepts a custom Vue component and gets a few vue-admin functions injected to perform requests to an API

Our goal:

  • A user should be able to declare a Resource by using a Vue component
  • Resource will be wrapped by a functional component that must provide valid data (props) to the Resource component.
  • VueAdmin must also expose a new functional component for every action (List, Create, Show, Edit)
  • In a first instance this component will work as a wrapper of the original Action component (List, Create, Show, Edit). VueAdmin must manipulate and reorder props as necessary to bring valid data to the Action component.
  • A user should declare UI components such as TextField, TextInput, etc as children of one of the Action components. This component can be exposed or can be native html elements such as p, div, input, etc (To review)
@sgobotta sgobotta added core ui UI components that will be part of the core source code refactor Ch, ch, ch, ch, changes! In progress labels Jan 25, 2019
@sgobotta sgobotta self-assigned this Jan 25, 2019
@sgobotta sgobotta changed the title As a User I can declare Actions (List, Create, Edit, View) as children of a Resource component As a User I can declare Actions in the template (List, Create, Edit, View) as children of a Resource component Jan 25, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
core ui UI components that will be part of the core source code In progress refactor Ch, ch, ch, ch, changes!
Projects
None yet
Development

No branches or pull requests

1 participant