Giter Site home page Giter Site logo

eki-177 / abyme Goto Github PK

View Code? Open in Web Editor NEW
90.0 4.0 3.0 5.39 MB

abyme is a modern take on handling dynamic nested forms in Rails 6+ using StimulusJS.

License: MIT License

Ruby 72.25% Shell 0.10% JavaScript 6.22% HTML 18.36% SCSS 3.06%
nested-attributes nested-forms rails stimulus

abyme's People

Contributors

alex59495 avatar bear-in-mind avatar dependabot[bot] avatar ghbozz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

abyme's Issues

Be able to pass HTML options to main wrapper element

You have no way of selecting a particular instance of abyme if using on the same page multiple times for the same association. If which case you have several elements with the same id. So we should be able to pass HTML to this element as well.

Make @object accessible (just like f.object)

We should add an accessor to be able to call abyme.object to get the original resource the form was called for.
Also : generated associations should be instantiated with their parent_id already set.

abyme yarn package doesn't import in 0.3.1

Looks like the package.json is specifying the exports are in a file that doesn't exist in the dist folder. Only abyme.js exists, no umd, modern, etc files.

index.js:10 Uncaught Error: Cannot find module 'abyme'

0.2.5 imports fine.

Improve handling of limit

Propositions:

  • handle limit with fieldTarget instead of newFieldTarget
  • trigger limit-reached event when abyme controller connect and limit already reached by previous records
  • add a new event within-limit when the limit is not reached yet
  • add data limitReached (true/false) and numberOfRecords to after-add and after-remove events
  • add a disable_add_button_when_limit_reached to abyme controller. Allowing to disable the add button when the limit is reached and activating it again when a record is deleted.

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.