mobile conditional rendering

  • 1
  • Question
  • Updated 2 years ago
  • Answered
It looks like there is currently no way to conditionally render decks or wrappers in the mobile builder? Is that the case for everyone?

Will conditional rendering work on mobile if I hack the XML?
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb

Posted 2 years ago

  • 1
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
The mobiledeck XML contains <renderconditions/>:



But we can't access it through the builder?
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Ah, it looks like I had the same issue as Dave here: https://community.skuid.com/skuid/topics/mobile-builder-cannot-add-components
Photo of Karen Waldschmitt

Karen Waldschmitt, Official Rep

  • 8,220 Points 5k badge 2x thumb
Matt~

That's odd. When you click on the deck, you should see what I see below which has a render conditions section ... Do you not see that?



Thanks!
Karen
Photo of Dave

Dave

  • 5,538 Points 5k badge 2x thumb
Hi Karen, it was Because of the TFG component enabled for mobile,
If I understood correctly, his issue has been fixed.
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Dave is correct. Problem solved.
(Edited)
Photo of Barry Schnell

Barry Schnell, Champion

  • 18,076 Points 10k badge 2x thumb
Matt -

Where you running an older version of TFG Components (prior to v1.3) when you were experiencing this problem?  If not, I'll take another look at the fix I made in v1.3.

As of v1.3 of the TFG Components, it should no longer break the mobile builder even when enabled for Mobile.  That said, TFG Components should only be enabled for Desktop (see release notes).  Unfortunately, there is no way in the component pack to specify it doesn't support mobile so it's a manual step when creating the pack :(
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Hey Barry. Unfortunately I have no idea what version of your component pack I was running. ;)
Photo of Barry Schnell

Barry Schnell, Champion

  • 18,076 Points 10k badge 2x thumb
No worries Matt.  I'm guessing it was an older version (or at least hoping) :)