Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add onclick to button field #12

Merged
merged 1 commit into from
Sep 2, 2019

Conversation

kastoras
Copy link
Contributor

Adds onclick functionality to Button Field:

When used on delete button, it add the code provided at onclick method, if not it add the code for form submission ('$("#form${id}").submit();')

Example to use this:
Button::make('id')->class(...)->route(...)->onclick('Add this to Buttons onclick tag') result: <button title="" data-toggle="" onclick="Add this to Buttons onclick tag" type="button" data-route="..." id="..." class="...">

@wimurk wimurk self-assigned this Aug 22, 2019
@wimurk wimurk added the enhancement New feature or request label Aug 22, 2019
@wimurk
Copy link
Contributor

wimurk commented Aug 22, 2019

#12 refer to issue

@wimurk wimurk merged commit 970d798 into singlequote:master Sep 2, 2019
wimurk added a commit that referenced this pull request Mar 10, 2021
* Update scripts.blade.php

* Update DataTable.php

* Update dropdown.blade.php

* Update dropdown.blade.php

* Update composer.json

* Button field route issue

Add a check if it already calls the relation

* Update Button.php

* Update Image.php

* Update Button.php

* Update image.blade.php

* Update image.blade.php

* Update image.blade.php

* Update image.blade.php

* Update composer.json

* Fix issue with searchable relations

* Add onclick to button field (#12)

* Fix issue with multiple tables (#15)

* Added filters to the package (#14)

* Added filters to the package

* Updated the docs

* Update button.md

* Update composer.json

* Update

* Update README.md

* Update table-models.md

* Update composer.json

* Update DataTable.php

* Update composer.json

* Update DataTable.php

* Update Middleware.php

* Update middleware.md

* Update middleware.md

* Update composer.json

* Update README.md

* Update DataTable.php

* Update composer.json

* Update README.md

* Update README.md

* use Str::contains instead of str_contains, implode error (#18)

* Updater to version 3.0.29

* Update README.md

* Spelling / grammar (#19)

* Update composer.json

* Update DataTableServiceProvider.php

* Update DataTable.php

* Update ColumnBuilder.php

* Update table-models.md

* Update DataTable.php

* Update composer.json

* Update 3.0.32

* Fix ID issue

* Update composer.json

* Update number.blade.php

* Update Number.php

* Update composer.json

* Fix issue with empty check

* Version 3.0.35

* Update 3.0.36

* Update scripts.blade.php

* Update composer.json

* Fix sort issue

* 3.0.38

* Fix issue in searchable keys

* Update composer.json

* Update README.md

* Update README.md

* Update README.md

* Update php 7.4 (#22)

* Update php 7.4

* Update README.md

* Update checkbox.md

* Update checkbox.md

* Fix issue with pivot tables

* 3.1.1

* Swapped overwrite with condition statement

* Update 3.1.2

* Fix stub issue

* Update MakeModel.php

* Create tutorial.md

* Update README.md

* Update tutorial.md

* Update tutorial.md

* Update tutorial.md

* Update tutorial.md

* Update README.md

* Added selected attribute

* Added selected attribute

* Added filter attributes

* Fix issue in order with relations

* Fixes issue in relation order

* Fix issue in searchables

* Update composer.json

* Update checkbox.blade.php

* Update composer.json

* Code clean

Plain javascript to classes and methods for cleaner code

* Added object to the filter methods

* Update 3.1.7

* Added number format method

* Added format method for countings

* Update 3.1.8

* Set condition check as first

* Change condition line

* Fix issue with method not found exception

* Update 3.1.10

* Fix bug in sorting model

* Update Multiple.php

* Update multiple.blade.php

* Update composer.json

* Update Dropdown.php

* Namespace fix

* Update table-models.md (#27)

Co-authored-by: Wimurk <wimurk@users.noreply.github.com>
Co-authored-by: Anthimidis Nikos <kastoras_1@hotmail.com>
Co-authored-by: Wim Pruiksma <wimpruiksma@gmail.com>
Co-authored-by: Jimmy Yen <zeng.tw@gmail.com>
Co-authored-by: Zachary Craig <zack@zack6849.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants