Click here to Skip to main content
15,894,896 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to embed an icon in the
block (or TitlePane) before the title (here: title="Location")?
HTML
<div id="locationPane" dojotype="dijit.TitlePane"  title="Location" open="true"  >

Thanks
Posted
Updated 20-Nov-14 7:40am
v2
Comments
Afzaal Ahmad Zeeshan 20-Nov-14 11:40am    
What library are you using? I mean where is that dojotype coming from?
s yu 20-Nov-14 11:47am    
See the major ones below. I can add more if needed. Thanks.
<link href="assets/css/jquery-ui.css" rel="stylesheet" type="text/css" >
<script type="text/javascript" src="assets/js/jquery.js"></script>
<script type="text/javascript" src="assets/js/jquery-ui.custom.min.js"></script>
<script type="text/javascript" src="assets/js/jquery-1.10.2.min.js"></script><script type="text/javascript" src="http://js.arcgis.com/3.11/"></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
Sergey Alexandrovich Kryukov 20-Nov-14 13:57pm    
Icon? I hope you mean a bitmap... What's the problem: <img src="..."/>, CSS...
—SA
s yu 20-Nov-14 14:20pm    
Yes. I want to embed an image (icon size) in the dijit.Title pane either before or after the title. Thanks for your review.
Sergey Alexandrovich Kryukov 20-Nov-14 16:34pm    
Do you mean Dijit Editor?
—SA

1 solution

Please see: http://www.w3schools.com/tags/tag_img.asp[^].
To "embed", or, rather, to group HTML elements together and ensure proper layout, learn some CSS: http://en.wikipedia.org/wiki/Cascading_Style_Sheets[^] :-).

—SA
 
Share this answer
 
Comments
s yu 21-Nov-14 10:38am    
I understand that you proposed approach is valid in general. However, particularly for my scenario, it does not work properly. Thanks anyway.
Sergey Alexandrovich Kryukov 21-Nov-14 11:23am    
Why? Nothing will work properly if not used properly...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900