Tikaï
Tikaï
PD🧩 Plasmo Developers
Created by Tikaï on 10/24/2024 in #🔰newbie
Pass custom props to CSUI component
might be related to the mutationObserver
8 replies
PD🧩 Plasmo Developers
Created by Tikaï on 10/24/2024 in #🔰newbie
Pass custom props to CSUI component
I see! so mountShadow and getInlineAnchorList not needed anymore?
8 replies
PD🧩 Plasmo Developers
Created by Tikaï on 10/23/2024 in #🔰newbie
Using getInlineAnchorList but having plasmocsui into a child
Actually found it, if some reach the same issue, use the parent selector into getInlineAnchorList and use mountShadowHost to specify where to position it
export const mountShadowHost: PlasmoMountShadowHost = ({
shadowHost,
anchor,
mountState
}) => {
anchor.element.querySelector('& > div:first-child').appendChild(shadowHost)
mountState.observer.disconnect() // OPTIONAL DEMO: stop the observer as needed
}
export const mountShadowHost: PlasmoMountShadowHost = ({
shadowHost,
anchor,
mountState
}) => {
anchor.element.querySelector('& > div:first-child').appendChild(shadowHost)
mountState.observer.disconnect() // OPTIONAL DEMO: stop the observer as needed
}
4 replies
PD🧩 Plasmo Developers
Created by Tikaï on 10/23/2024 in #🔰newbie
Custom MutationObserver
Hum I am using getInlineAnchorList, any idea of how to do it with a list?
10 replies
PD🧩 Plasmo Developers
Created by Tikaï on 10/23/2024 in #🔰newbie
Custom MutationObserver
looks gucci, thanks a lot!
10 replies