Code Monkey home page Code Monkey logo

Comments (3)

Zen0x7 avatar Zen0x7 commented on June 6, 2024

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.

Zen0x7 avatar Zen0x7 commented on June 6, 2024

Probably that feature will be added on this weekend

from nova-gridder.

Zen0x7 avatar Zen0x7 commented on June 6, 2024

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