Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@stimulus-components/rails-nested-form

stimulus-components82.7kMIT5.0.0TypeScript support: included

A Stimulus controller to create new fields on the fly to populate your Rails relationship.

stimulus, stimulusjs, stimulus controller, rails, nested form

readme

Stimulus Rails Nested Form

Getting started

A Stimulus controller to create new fields on the fly to populate your Rails relationship with accepts_nested_attributes_for.

📚 Documentation

See stimulus-rails-nested-form documentation.

👷‍♂️ Contributing

Do not hesitate to contribute to the project by adapting or adding features ! Bug reports or pull requests are welcome.

📝 License

This project is released under the MIT license.

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

[5.0.0] - 2024-03-23

Added

  • Dispatch rails-nested-form:add and rails-nested-form:remove events.

Chore

  • Renaming the component from stimulus-rails-nested-form to @stimulus-components/rails-nested-form
  • Upgrading dependencies
  • Exporting Typescript Types
  • Updating demo UI
  • Add Stimulus LSP compatibility

[4.1.0] - 2022-12-23

Added

  • Adding name in library export to use the package with CDN, Sprockets and import-maps.

Chore

  • Using Stimulus as external library reducing size from 10.29 KiB to 0.72 kB.
  • Bump dependencies.
  • Upgrading to Vite 4.x.
  • Docs new UI.
  • Upgrading Node to 18.x.

[4.0.0] - 2021-10-06

Chore

  • Breaking Upgrading Stimulus to 3.x and change namespace from stimulus to @hotwired/stimulus.
  • Using default value option for wrapperSelector.
  • Upgrading dependencies
  • Upgrading Node to 14.18.0

[3.0.0] - 2021-05-09

Chore

  • Remove puppeteer for Vanilla Jest
  • Moving from Snowpack to Vite
  • Using stimulus as external library reducing bundle size from 40.63kb to 0.58kb.
  • Moving to TypeScript
  • Upgrading Node to 14.16.1

[2.0.0] - 2020-12-05

Added

  • Support for Stimulus 2.0

Changed

  • Breaking Using the new values static property
- <form data-controller="nested-form" data-nested-form-wrapper-selector=".nested-form-wrapper">
+ <form data-controller="nested-form" data-nested-form-wrapper-selector-value=".nested-form-wrapper">

[1.1.0] - 2020-10-31

Changed

  • Adding remove support.

[1.0.0] - 2020-10-15

Added

  • Adding controller