andyhill Posted January 28, 2018 Share Posted January 28, 2018 I have a mobile form with IconCls themed button image, how can I replace the image/icon on the themed button using a URL ? Link to comment Share on other sites More sharing options...
Sherzod Posted January 28, 2018 Share Posted January 28, 2018 Hi, Sorry, can you clarify your question ? Link to comment Share on other sites More sharing options...
andyhill Posted January 28, 2018 Author Share Posted January 28, 2018 The Sencha Themed TitleButton (gear image), I want to change the gear image to an image of my own from a URL. Link to comment Share on other sites More sharing options...
Sherzod Posted January 28, 2018 Share Posted January 28, 2018 Ok, can you use an approach as in this post ?: http://forums.unigui.com/index.php?/topic/8024-hamburger-iconcls/&do=findComment&comment=41061 Link to comment Share on other sites More sharing options...
andyhill Posted January 28, 2018 Author Share Posted January 28, 2018 Thanks, however I am not using a font. I want to use an image from a URL. Below is code from Sencha but it fails to show the URL image (and yes, the image is there, and can be seen by direct browser access), can you please advise - thanks. CustomCSS.Add('.x-tab .x-button-icon.car::before, .x-button .x-button-icon.car::before '); CustomCSS.Add('{ '); CustomCSS.Add(' padding: 5px !important; '); CustomCSS.Add(' width: 40px; '); CustomCSS.Add(' height: 40px; '); CustomCSS.Add(' -webkit-mask-image: url(''car.png'') !important; '); CustomCSS.Add(' -webkit-mask-size: 30px 30px; '); CustomCSS.Add(' -webkit-mask-repeat: no-repeat; '); CustomCSS.Add(' -webkit-mask-origin: content; '); CustomCSS.Add(' background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, '); CustomCSS.Add(' from(rgba(255, 255, 255, 0.7)), to(rgba(255, 255, 255, 0.9))) !important; '); CustomCSS.Add(' background-color: #000000 !important; '); CustomCSS.Add('} '); Link to comment Share on other sites More sharing options...
andyhill Posted January 29, 2018 Author Share Posted January 29, 2018 Farshad, I would very much appreciate if you would advise how to accomplish Image Url Button ASAP - thanks. Link to comment Share on other sites More sharing options...
Int3g3r Posted October 13, 2020 Share Posted October 13, 2020 Hello, I have a simmilar problem. How can i add a "icon.png" to a title-button ? (see attachment) I want to load a local file, not per web url. Regards, Int3g3r Link to comment Share on other sites More sharing options...
Recommended Posts