Logo on JavaScript Form
Reg Paling
reg.paling at lokanet.com
Sun Aug 19 05:44:54 EDT 2018
Hi Bruno,
Thanks for this answer, because it shows how easy it is to add html into
a jsForm, and it made me realise that a HTML component in a jsForm is
going to be a very lightweight component because basically the whole
thing is HTML!
I ended up using the method that Vik pointed me to because it was a
little simpler.
Regards,
Reg
On 16/8/18 6:31 pm, Bruno Del Sol wrote:
> Hi,
>
> Unless it is very important to you to see this logo in the IDE, you
> don't want to use an icon for it.
>
> just add an html control into the form, and set its $html property
> like this for instance :
>
>
> $setLogo
> -------------
>
> ;; called by $construct of the form
>
> Calculate filename as 'mylogo.svg'
> Calculate style as 'margin:8px;'
>
> Begin text block
> Text: {<img src="assets/[filename]" alt="Logo" style="[style]"/>} ;;
> the logo file is in a sub-folder html/assets
> End text block
> Get text block s
> Do $cinst.$objs.Logo.$html.$assign(s) ;; the html control is named Logo
>
>
> HTH
>
> Regards
> Bruno
>
> By Design
> http://www.bydesign.fr
> Bruno Del Sol
> bruno.delsol at bydesign.fr
> tel (33) 01 48 78 47 37
> 46, rue de La Tour d'Auvergne
> 75009 Paris (France)
>
> Le 15/08/2018 à 23:23, Reg Paling a écrit :
>> Hi all,
>>
>> I just want to put a logo at the top of my javascript form. I used
>> to have a picture field which had its $iconid pointing to an image
>> page in #ICONS, but that isn't working in Studio 8.1.6 when testing
>> the form on my Mac. In the manual, it says "For backwards
>> compatibility, the picture control can display an icon in an icon
>> data file (Omnispic) or #ICONS by setting $iconid to a numeric icon
>> ID." In my opinion #ICONS is the perfect place to store the picture,
>> so convenient right there in the library, but I don't want to use a
>> feature that is marked for backward compatibility (and it's not
>> working for me anyway!) so what it the handiest way to achive this?
>>
>> The manual says "Alternatively, $iconid can be set to a URL
>> referencing an image file in the ‘html/icons’ folder", but in the
>> Propery Manager I can't seem to type anything other than a number
>> into the iconid.
>>
>> Thanks,
>> Reg
>>
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com
>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list