02-07-2014 06:34 AM
http://127.0.0.1:8080/share/page/components/dashlets/my-dashlet
<@markup id="css" >
<#– Link to your CSS file –>
<@link rel="stylesheet" type="text/css" href="${url.context}/res/components/dashlets/my-dashlet.css" group="dashlets"/>
</@>
http://127.0.0.1:8080/share/res/components/dashlets/my-dashlet.css
<webscript>
<shortname>My Dashlet</shortname>
<description>Example dashlet</description>
<family>user-dashlet</family>
<url>/components/dashlets/my-dashlet</url>
</webscript>
<@markup id="css" >
<#– Link to your CSS file –>
<@link rel="stylesheet" type="text/css" href="${url.context}/res/components/dashlets/my-dashlet.css" group="dashlets"/>
</@>
<@markup id="html">
<@uniqueIdDiv>
<div class="dashlet my-class">
<div class="title">${msg("header.title")}</div>
<div class="body">${msg("text.hello")}</div>
</div>
<div class="blogs-greeting-io">${url.context}</div>
</@>
</@>
header.title=My dashlet
text.hello=Hello world !!
.title {color:orange;}
.blogs-greeting-io {
padding: 10px;
color: orange;
font-weight: bold;
}
02-10-2014 12:15 PM
<div id="my-dashlet">Prova!</div>
#my-dashlet { color: red; }
.<div class="my-title">…
oppure inserire la direttiva !important dopo la proprietà che vuoi modificare (color: red !important
). 02-11-2014 08:37 AM
<@markup id="css" >
<#– Link to your CSS file –>
<@link rel="stylesheet" type="text/css" href="${url.context}/res/components/dashlets/my-dashlet.css" group="dashlets"/>
</@>
<@markup id="html">
<@uniqueIdDiv>
<div class="dashlet my-class">
<div class="title">${msg("header.title")}</div>
<div class="body">${msg("text.hello")}</div>
</div>
<div class="blogs-greeting-io">${url.context}</div>
<div id="my-dashlet-pippo">Prova!</div>
</@>
</@>
.title {color:orange !important;}
.blogs-greeting-io {
padding: 10px;
color: orange;
font-weight: bold;
}
#my-dashlet-pippo { color: red; }
02-11-2014 09:08 AM
02-11-2014 10:49 AM
You can even access the component directly, by going to http://localhost:8080/share/components/dashlets/my-dashlet – you would only get the component (dashlet), not the whole page.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.