Skip to content
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

Enhance extra_cards #61

Open
ajagnanan opened this issue Sep 25, 2023 · 1 comment
Open

Enhance extra_cards #61

ajagnanan opened this issue Sep 25, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@ajagnanan
Copy link

ajagnanan commented Sep 25, 2023

Is your feature request related to a problem? Please describe.
I'd like the ability to add extra_cards before and after the generated cards

Describe the solution you'd like
Enhance the extra_cards option to be extra_cards_before and extra_cards_after which places custom cards before and after the generated cards

Describe alternatives you've considered
Currently there isn't a way to place cards after

Additional context
Discussion topic: #59

@ajagnanan ajagnanan added the enhancement New feature or request label Sep 25, 2023
@DigiLive
Copy link
Collaborator

Note: The Home view has the same, but it's called quick_access_cards and extra_cards.

// Add quick access cards.
if (options.quick_access_cards) {
homeViewCards.push(...options.quick_access_cards);
}
// Add area cards.
homeViewCards.push({
type: "vertical-stack",
cards: areaCards,
});
// Add custom cards.
if (options.extra_cards) {
homeViewCards.push(...options.extra_cards);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants