Skip to content

Commit

Permalink
Merge pull request #39 from tienvx/fix-controller-in-readme
Browse files Browse the repository at this point in the history
Fix controller in readme
  • Loading branch information
tienvx committed Feb 18, 2022
2 parents ed9071e + ff80c4f commit 49b52e7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ UX collection JS is a Symfony bundle providing Symfony UX integration for collec

## Screenshots

### Bootstrap 3
![Screenshot Bootstrap 3](./images/collection-js-bootstrap-3.png)
### Bootstrap 5
![Screenshot Bootstrap 5](./images/collection-js-bootstrap-5.png)
### EasyAdmin
![Screenshot EasyAdmin](./images/collection-js-easyadmin.png)

## Installation
Expand Down Expand Up @@ -159,11 +162,11 @@ $form = $this->createFormBuilder($task)
import { Controller } from 'stimulus';

export default class extends Controller {
deleteItem(event) {
postDelete(event) {
const { delete_elem, context, index } = event.detail;
}

addItem(event) {
postAdd(event) {
const { new_elem, context, index } = event.detail;
}
}
Expand Down

0 comments on commit 49b52e7

Please sign in to comment.