Skip to content

Conversation

@lemniscate8
Copy link
Collaborator

@lemniscate8 lemniscate8 commented Aug 26, 2021

Add examples of how to use the ControlPanel and ToggleButtonGroup classes.

@lemniscate8 lemniscate8 requested a review from mmore500 August 26, 2021 00:40
@lemniscate8 lemniscate8 self-assigned this Aug 26, 2021
Copy link
Member

@mmore500 mmore500 left a 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;
Copy link
Member

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"
Copy link
Member

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>";
Copy link
Member

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>";
Copy link
Member

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
};
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants