-
Notifications
You must be signed in to change notification settings - Fork 26
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
issue/2824-jsx JSX version of accordion #97
Conversation
I think we could probably do the event attachment both ways @cahirodoherty-learningpool |
Yeh I'm not sure which is the best way to declare this, but happy with either as long as there is consistency across views. |
I think if we step away from backbone for the events that'd be the best long-term plan. |
Does it all make sense otherwise? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
@oliverfoster can we get rid of var most of the(one time assigned) variables to const now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couple of minor suggestions, otherwise looking great. Bring it on!
Co-authored-by: Matt Leathes <mleathes+github@gmail.com>
Do not merge without adaptlearning/adapt_framework#2829 and adaptlearning/adapt_framework#2827 version bump accordingly when ready. Notes:
|
@kineojen : could you double check the img loading=eager attribute when you next run this? |
Confirmed all accordion images are set to loading="eager" |
Co-authored-by: tomgreenfield <tomgreenfield@users.noreply.github.com>
Co-authored-by: tomgreenfield <tomgreenfield@users.noreply.github.com>
Co-authored-by: tomgreenfield <tomgreenfield@users.noreply.github.com>
Co-authored-by: tomgreenfield <tomgreenfield@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
Ready to review, requires pr#3140 |
issue/2824-react
part of adaptlearning/adapt_framework#2876
An example of how to create a react version of a component:
ViewClass.template = 'name.jsx';
Add.jsx
to the end of the template name (Template names are sometimes implied from theAdapt.register
call).hbs
template into ajsx
template, the jsx template should reflect all of the view states, including any DOM modifications from the javascript.This is called a
declarative
approach, where we declare the state of the DOM injsx
and allow the computer to figure out how to implement it. We have been using animperative
approach, where we have to tell the computer how to make DOM modifications. Reference on declarative vs imperative