Page 1 of 1

Additional icons

PostPosted: 11 May 2018 12:32
by cyracks
Hello,

most of the components have property icon and iconCustom. Is there a way to add additional icons to the selection (it would be nice to have more icons by default) ?

Regards
Tomaž

Re: Additional icons

PostPosted: 11 May 2018 15:04
by Jorge Sousa
Hi Tomaž

The IconCustom property is exactly to apply a custom icon, but you to make custom icons, you will have also to add your own css flie, following these instructions:

http://demos.jquerymobile.com/1.3.2/widgets/icons/#CustomIcons

About

it would be nice to have more icons by default


Yes, we wish them too, but these are the only available:

http://demos.jquerymobile.com/1.3.2/widgets/icons/


I'm sorry

With the above instructions, I'm sure you will be to extend to these ones:

http://demos.jquerymobile.com/1.4.5/icons/

and much more

Re: Additional icons

PostPosted: 16 Nov 2018 11:08
by Soren SDF
Hi Jorge.
My problem is not really that i want custom icons, but rather that i don't understand how to access all the icons in the ui-icons .png file.
For instance the icon that kinda displays the head and shoulders of a man there in the middle. How could i use that in one of my buttons.
There's no drop down item for it in the prop editor.
T.I.A.
Soren

Re: Additional icons

PostPosted: 19 Nov 2018 17:49
by Alexander Bulei
Hi Soren SDF,

My problem is not really that i want custom icons, but rather that i don't understand how to access all the icons in the ui-icons .png file.
For instance the icon that kinda displays the head and shoulders of a man there in the middle. How could i use that in one of my buttons.
There's no drop down item for it in the prop editor.
T.I.A.


You must check the available icons in dropdown (Icon property).

Also, you can see the icons of jquery 1.3.2 here: http://demos.jquerymobile.com/1.3.2/widgets/icons/

If you want the custom icon, you must use the CustomIcon property (css class) , and load the custom css file with css rules for icon.

Best Regards.

Re: Additional icons

PostPosted: 19 Nov 2018 19:55
by cyracks
Soren SDF this topic may also be helpful: viewtopic.php?f=32&t=3694

Regards,
Tomaž