Works for my use case, thanks! Got so wrapped up in not wanting to do anything global in my CSS, I completely drew a blank on defining an in-line style. Thanks!
On Thursday, March 24, 2016 at 10:26:50 AM UTC-7, Anthony wrote: > > If you're talking about using the LOAD helper, it only generates a DIV, > and the JS code only looks for DIVs. Would setting it's display to inline > do the trick: > > mycomponent = LOAD(..., _style='display:inline') > > If not, you should be able to do something like this in the view (not > tested): > > <span id='mycomponent'></span> > <script>$.web2py.component('{{=URL(...)}}', 'mycomponent', el=$( > '#mycomponent'));</script> > > Anthony > > On Thursday, March 24, 2016 at 12:51:33 PM UTC-4, webm...@trytha.com > <javascript:> wrote: >> >> I want my component to load in a span() instead of the default >> div(class="data-w2p_remote"). Anyone know the best way to do this? >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.