-
Couldn't load subscription status.
- Fork 1
Add control panel and toggle button group examples #3
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
base: master
Are you sure you want to change the base?
Conversation
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.
Will need to address changes on other PR first, probably!
| #include "emp/web/Div.hpp" | ||
| #include "emp/web/Document.hpp" | ||
|
|
||
| int simulation_counter = 0; |
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.
Add a brief comment explaining what each of these are tracking
|
|
||
| #include "emp/prefab/Card.hpp" | ||
| #include "emp/prefab/CodeBlock.hpp" | ||
| #include "emp/prefab/ButtonGroup.hpp" |
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.
alphabetization
| }); | ||
| tbg_ex << reaction; | ||
| tbg_ex << reaction_post; | ||
| tbg_ex << "<h5>In button groups:<h5>"; |
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.
Move this down to end
| card_ex.AddHeaderContent("<h3>Toggle Button Group</h3>"); | ||
| tbg_ex << "<h3>Live Demo:</h3><hr>"; | ||
|
|
||
| tbg_ex << "<h5>On its own:<h5>"; |
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.
Casette style
| emp::prefab::FontAwesomeIcon("fa-tree"), emp::prefab::FontAwesomeIcon("fa-tint"), | ||
| "success", "primary", | ||
| false, true | ||
| }; |
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.
Can you put each of these into a helper maker method?
Add examples of how to use the
ControlPanelandToggleButtonGroupclasses.