I built a custom signature component using jSignature and would like to use it on mobile, but mobile doesn’t seem to like the $(‘MyComponentId’).data(‘object’) syntax. Help?
$(‘#MyComponentId’).data(‘object’) only works for several desktop components, and it returns something slightly different than what .data(‘component’) returns for these components — for most components, including all mobile components, what you want to get access to is the Component object, and this is returned through either skuid.$C(‘MyComponentId’) if your component has a Unique Id, or element.data(‘component’) if you have a jQuery-wrapped element reference in context.
Zach,
Does this mean that I can replace element.data(‘object’) with element.data(‘component’) and get the same results?
No, it does not. Where .data(‘object’) is available, it usually returns something different than .data(‘component’)
Hmm, unfortunate. Ok.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.