mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-15 01:23:04 -04:00
[nextgen/cardstack] add slot support to components
- migrate existing code to slots - add interactiveComponent.activeColor to overwrite the default "selected" button style - improve handling of cached components
This commit is contained in:
parent
e2c8a368c6
commit
668bb946a7
5 changed files with 173 additions and 88 deletions
|
@ -112,7 +112,6 @@ module.exports = {
|
|||
episodes_button: {
|
||||
type: InteractiveComponentTypes.BUTTON,
|
||||
label: "Episodes",
|
||||
inline: false,
|
||||
visible: true,
|
||||
condition: (page) => {
|
||||
return (page.getState("episodes_key") !== null)
|
||||
|
@ -168,7 +167,6 @@ module.exports = {
|
|||
characters_button: {
|
||||
type: InteractiveComponentTypes.BUTTON,
|
||||
label: "Characters",
|
||||
inline: false,
|
||||
visible: true,
|
||||
condition: (page) => {
|
||||
return (page.getState("characters_key") !== null)
|
||||
|
@ -210,7 +208,6 @@ module.exports = {
|
|||
related_button: {
|
||||
type: InteractiveComponentTypes.BUTTON,
|
||||
label: "Related",
|
||||
inline: false,
|
||||
visible: true,
|
||||
condition: (page) => {
|
||||
return (page.getState("related_key") !== null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue