How to directly add a component to a canvas without <div>

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to directly add a component to a canvas without <div>

bahman
Hi all,

Let's say I have Root (which is the root component) and Comp1 which is a
component that Root renders and `Comp1>>renderContentOn:' correctly
wraps itself inside a <div> tag.

Now in `Root>>renderContentOn:' is there anyway to *just* add Comp1
without wrapping it in an additional <div>?  Consider the following
pseudo-code:

<code>
  Root>>renderContentOn: h
    h dumpComponent: self comp1.  "instead of `h div with: self comp1'"
</code>

TIA,
--
Bahman Movaqar  (http://BahmanM.com)
ERP Evaluation, Implementation, Deployment Consultant
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: How to directly add a component to a canvas without <div>

Karsten Kusche
try that 
Root>>renderContentOn: html
html render: self comp1.

Kind Regards
Karsten

-- 
Karsten Kusche - Dipl. Inf. (FH) - [hidden email]
Georg Heeg eK - Köthen
Handelsregister: Amtsgericht Dortmund A 12812 

Am Dienstag, 28. Mai 2013 um 14:51 schrieb Bahman Movaqar:

Hi all,

Let's say I have Root (which is the root component) and Comp1 which is a
component that Root renders and `Comp1>>renderContentOn:' correctly
wraps itself inside a <div> tag.

Now in `Root>>renderContentOn:' is there anyway to *just* add Comp1
without wrapping it in an additional <div>? Consider the following
pseudo-code:

<code>
Root>>renderContentOn: h
h dumpComponent: self comp1. "instead of `h div with: self comp1'"
</code>

TIA,
--
Bahman Movaqar (http://BahmanM.com)
ERP Evaluation, Implementation, Deployment Consultant
_______________________________________________
seaside mailing list


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: How to directly add a component to a canvas without <div>

bahman
On 2013-05-28 17:38, Karsten Kusche wrote:
> try that
> Root>>renderContentOn: html
> html render: self comp1.

Thanks a lot.  That worked!

> Am Dienstag, 28. Mai 2013 um 14:51 schrieb Bahman Movaqar:
>
>> Hi all,
>>
>> Let's say I have Root (which is the root component) and Comp1 which is a
>> component that Root renders and `Comp1>>renderContentOn:' correctly
>> wraps itself inside a <div> tag.
>>
>> Now in `Root>>renderContentOn:' is there anyway to *just* add Comp1
>> without wrapping it in an additional <div>? Consider the following
>> pseudo-code:
>>
>> <code>
>> Root>>renderContentOn: h
>> h dumpComponent: self comp1. "instead of `h div with: self comp1'"
>> </code>

--
Bahman Movaqar  (http://BahmanM.com)
ERP Evaluation, Implementation, Deployment Consultant
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside