-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
[Question]: Placement of card_template()
function.
#226
Comments
@insightsengineering/nest-core-dev Please share your thoughts or questions regarding |
Why do we need teal package for that?
…On Wed, Oct 11, 2023, 20:23 kartikeya kirar ***@***.***> wrote:
Assigned #226
<#226> to @m7pr
<https://github.com/m7pr>.
—
Reply to this email directly, view it on GitHub
<#226 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A74AIELLK772UU47SERTWZ3X63PY3ANCNFSM6AAAAAA54NCFXQ>
.
You are receiving this because you were assigned.Message ID:
<insightsengineering/teal.reporter/issue/226/issue_event/10622422038@
github.com>
|
Because the |
card_template()
function.
Alrighty, so it's rather clear that you need to include it (card_template)
in teal and we don't need a separate discussion about it. No need for extra
dependencies in teal.reporter then
…On Thu, Oct 12, 2023, 05:45 kartikeya kirar ***@***.***> wrote:
Because the card_template function relies on the teal package, it
utilizes the TealReportCard R6 class, which has been relocated to the teal
package.
—
Reply to this email directly, view it on GitHub
<#226 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A74AIEPSJB75YWGPSQHJUQ3X65RWZANCNFSM6AAAAAA54NCFXQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Oh yeah, and as we just spoke, teal.reporter can not import teal, since teal is already importing teal.reporter 📦 |
#933) this PR is extension to insightsengineering/teal.reporter#198 Here I have added card_template() function that generates a report card with a title, an optional description, and the option to append the filter state list. and is been used in insightsengineering/teal.modules.general#584 insightsengineering/teal.modules.clinical#835 insightsengineering/teal.modules.hermes#336 insightsengineering/teal.osprey#229 insightsengineering/teal.goshawk#241 ref issues and discussion: insightsengineering/teal.reporter#226 --------- Signed-off-by: kartikeya kirar <[email protected]> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Marcin <[email protected]> Co-authored-by: 27856297+dependabot-preview[bot]@users.noreply.github.com <27856297+dependabot-preview[bot]@users.noreply.github.com>
I've moved the template function to the |
What is your question?
To include card labels, the
add_card_button_srv
function allows you to specify thecard_fun
along with a label parameter for customizing the card's title and content. This feature enables you to utilize the label shiny input and incorporate it into yourcard_fun
to set the title.When it comes to teal modules, each module has its own structure for the
card_fun
, but there are common elements shared across all card_function that can be standardized within acard_template
function. You can find an example of this in the following code:Teal Reporter - card_template function
This card_template function can be further encapsulated to suit specific requirements, as demonstrated here:
Teal Goshawk - customized card_template
The challenge lies in deciding where to place the card_template function, as keeping it within teal.reporter adds teal as a dependent package. Here are a few suggestions:
Option 1:
Move the
card_template()
function to teal as an exported function. Instead of teal.reporter.Option 2:
Create a separate
card_template
for each module (e.g., tmc, tmg, tmh) to ensure module-specific customization.Option 3:
Consider adding teal as a dependency to teal.reporter to retain the card_template function.
The text was updated successfully, but these errors were encountered: