Jump to content


NadimD

Member Since 11 Jan 2019
Offline Last Active Mar 28 2019 07:20 PM
-----

Posts I've Made

In Topic: Replace url filename with custom text

30 January 2019 - 01:41 PM

You're welcome !

 

Well, to make a callback on the clicked link, that would be out of Grocery Crud since the click is handle by the browser.

That means you could either add a onclick='yourcallback();' on your link, and make a JS function yourcallback() , or you can init a click event with jQuery, outside GroceryCRUD.

 

Make sure you load jQuery or any library you use to handle the clicks if you use a library, and that's it !

If the callback is supposed to happen after the link is clicked, on the target, that would be server-side !

 

Let me know if you understand and feel free to provide me more details.

 

I personnally don't want to get into the GCRUD React scripts, they can be updated any time and I'm not a React developer, so I handle everything else in my own script.js using jQuery.

 

That's how I made a "preview" button for instance, I have a table "articles" with a text field, and I added a preview button near the Save button to achieve custom events.


In Topic: Question about the docs for setModel

27 January 2019 - 01:58 AM

All right, I'm currently far from home and I don't have my computer with me, I will be back next week and will notify you here when the patch is released, sorry for the delay but I cannot do better than that atm!


In Topic: Question about the docs for setModel

23 January 2019 - 12:20 PM

What version are you using ? I will provide you my fixes according asap


In Topic: Replace url filename with custom text

21 January 2019 - 12:28 AM

Greetings !

 

You can use a callback on the column to achieve that :

 

https://www.groceryc...callback_column

 

Let me know if this works for you.


In Topic: Question about the docs for setModel

18 January 2019 - 11:51 PM

Thank you @larasmith .

 

I've finished my patch and will soon release a post to add :

- Search with multiple words on 1_to_N relations

- Multiple field names when using set_relation and a custom display

 

I just need to optimize a little bit the code before releasing it, you'll be notified in this post aswell.

 

Stay tuned !