are mobile and desktop components interchangeable via XML?

  • 1
  • Question
  • Updated 2 years ago
Not sure where I read this or where I watched it, but I swear someone said they were.

Is this true, if so, how?
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb

Posted 4 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
The runtime for mobile and desktop are different. I don't think components copied from one environment to the other would render.  
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
They do when you include the javascript for it. FUGLY!
(Edited)
Photo of Shmuel Kamensky

Shmuel Kamensky, Champion

  • 4,328 Points 4k badge 2x thumb
Hey Pat,

What does this mean?
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
I manually included the js for mobile so the components from mobile would run on a desktop page.
Photo of Shmuel Kamensky

Shmuel Kamensky, Champion

  • 4,328 Points 4k badge 2x thumb
ohhh did you find a way of getting it work the other way around? Convert desktop components to mobile components?
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Didn't try. Shouldn't need to now that the two builders are merged.
Photo of Shmuel Kamensky

Shmuel Kamensky, Champion

  • 4,328 Points 4k badge 2x thumb
What about for pages already built in desktop? Will those automatically format appropriately on a mobile device in Salesforce1 and on the site itself? Sorry for my ignorance, just dabbling in mobile now.