[Seaside] Wrapping ProtoTip
John Thornborrow
john at pinesoft.co.uk
Wed Mar 5 12:59:06 UTC 2008
The class SUTooltip is not part of any package (that I know of) as I
just created it this morning :)
The "Tooltip JS code" is the Prototip library file needed to create
Tooltips[1]. SUTooltip will only write "new Tip(this, '<content set
within the content block>')" it will not write the Tip JS definition,
nor the extra options available to Prototip.
I didn't want to submit/publish anything as of yet, as there is a lot
more functionality available from Prototip than what is included in
SUTooltip, and this was only meant as a demonstration of creating a
widget with a render block as Hwee-Boon Yar asked.
1. http://www.nickstakenburg.com/projects/prototip/
Regards,
John.
Lukas Renggli wrote:
>> I also forgot to mention that anyone who uses this class will need to
>> include their own file library for the Tooltip JS code.
>
> This means it works now? Or is it a bug report?
>
> Would it be possible to publish the mcz?
>
> Lukas
>
>>
>> John
>>
>>
>> Lukas Renggli wrote:
>> >> !SUTooltip methodsFor: 'accessing' stamp: 'jmt 3/5/2008 11:58'!
>> >> content: anObject
>> >> "Set the value of content"
>> >>
>> >> content := anObject! !
>> >
>> > Shouldn't this be
>> >
>> > content := self render: anObject
>> >
>> > ?
>> >
>> > Lukas
>> >
>>
>>
>>
>> Pinesoft Computers are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA
>>
>>
>>
>> This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com
>>
>>
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>
>
More information about the seaside
mailing list