You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to get the name of the pagelet?
<%= pagelet :pagelets_company_onboarding_progress, remote: true %> would give me company_onboarding_progress, and possibly which action as well, as extra parameters.
Basically what the css classes on the pagelet div are.
It would be a bit cleaner on the front end side, compared to fetching it from the content parameter.
Developers would have to write their own regexp, or
Convert the content to DOM nodes. A big pagelet could possibly be a bit expensive to convert with $()?
As I'm already getting it with regexp at the moment, I don't see this issue as important, just an improvement :)
Thanks for an awesome gem <3
The text was updated successfully, but these errors were encountered:
Frexuz
changed the title
Receiving the pagelet name with in the pagelet-loaded javascript event
Receiving the pagelet name in the pagelet-loaded javascript event
Aug 2, 2017
Would it be possible to get the name of the pagelet?
<%= pagelet :pagelets_company_onboarding_progress, remote: true %> would give me company_onboarding_progress, and possibly which action as well, as extra parameters.
Basically what the css classes on the pagelet div are.
It would be a bit cleaner on the front end side, compared to fetching it from the
content
parameter.content
to DOM nodes. A big pagelet could possibly be a bit expensive to convert with$()
?As I'm already getting it with regexp at the moment, I don't see this issue as important, just an improvement :)
Thanks for an awesome gem <3
The text was updated successfully, but these errors were encountered: