Sepecify customer own font icon to LANSA Material Design controls property

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
Kazunori Kasahara
Posts: 20
Joined: Wed May 25, 2016 5:26 pm

Sepecify customer own font icon to LANSA Material Design controls property

Post by Kazunori Kasahara »

Hi,

Our customer would like to use their own font icons in LANSA Material Design controls. (Their designer creates .ccs and .woff etc. of their font icons.)
They would like to specify their font icon name to the ICON property of LANSA Material Design controls (e.g. PRIM_MD.RaisedButton) and change color using LANSA style.

Is there any way they could do that?

Thank you in advance.
Donn Delaney
Posts: 2
Joined: Wed Jan 23, 2019 9:54 am

Re: Sepecify customer own font icon to LANSA Material Design controls property

Post by Donn Delaney »

Hi Kazunori,

The css file can be added to a web page from the resources tab and the material design Icon property supports the setting of a class name.

Here is a Define_Com showing the usage of a fontello generated class name.

Define_Com Class(#PRIM_MD.Icon) Name(#Icon1) Displayposition(4) Left(294) Parent(#COM_OWNER) Tabposition(2) Top(351) Height(100) Width(100) Themedrawstyle('Card') Icon('icon-clouds-flash-alt')

The following pic shows where to embed a Fontello generated font ccs file to a web page (The file itself must be manually copied to the same location as the .html page)

Fontello.png
Fontello.png (12.22 KiB) Viewed 6302 times
Kazunori Kasahara
Posts: 20
Joined: Wed May 25, 2016 5:26 pm

Re: Sepecify customer own font icon to LANSA Material Design controls property

Post by Kazunori Kasahara »

Thank you very much Donn. I will try it out.
Post Reply