Making filled icons outline - mui - material-ui

I am using mui icons, currently I have filled ones but I want the thin versions for all of them.
This is where I am using them:
const drawer = (
<div>
<div className="drawer-container">
<div className="menu-container mt-8">
<List>
<div>
<DrawerItem name="Users" link="/view-users" icon="group" subItems={userChildren} />
</div>
<div>
<DrawerItem name="Forms" icon="article" link="/home" />
</div>
<div>
<DrawerItem name="Organisations" icon="groups" link="/organisations" />
</div>
</List>
</div>
</div>
</div>
);
They look like this:
My question is how do I get the outline versions?

Related

ionic keyboard moves content upwards

I'm a beginner on ionic framework. Just doing markup for the app not developing the whole application.
on focusing field the keyboard opens and pushed ion-footer upwards i have set position and bottom values but none of them is working.
Here is the code of the page.
<ion-pane class="login">
<ion-content class="has-footer" scroll="false">
<div class="row topgap">
<div class="col-80 col-offset-10">
<div class="fixWidthContainer">
<h2 class="text-center">Welcome to Givi</h2>
<input type="text" placeholder="Full Name" />
<input type="email" placeholder="Email" />
<input type="password" placeholder="Password" />
<br />
<button class="button button-full LoginButton">Sign up</button>
<button class="button button-full LoginButton facebook">Sign up using Facebook</button>
</div>
</div>
</div>
</ion-content>
<ion-footer-bar class="transparentfooter">
<button href="#" class="button footercustombutton">Login</button>
</ion-footer-bar>
</ion-pane>
Also when the keyboard opens the background value is cover is also adjust itself and get smaller. What to do with this...
check this value if its false change it to true
<preference name="Fullscreen" value="true" />

customize opencms carousel element

opencms provides carousel element. but as per my requirement i need a carousel with thumbnail(which is not available in opencms). do i need to make changes in carousel.jsp(in com.alkacon.bootstrap.formatters/formatters). if it is the right way then provide some documentation regarding customization of carousel element.
<div class="carousel-inner">
<c:forEach var="item" items="${content.valueList.Item}" varStatus="status">
<div class="item<c:if test="${status.first}"> active</c:if>">
<cms:img alt="" src="${item.value.Image}" scaleType="2" scaleColor="transparent" scaleQuality="75" noDim="true" cssclass="img-responsive"/>
<div class="carousel-caption">
<c:if test="${item.value.Headline.isSet}">
<h3 ${item.rdfa.Headline}>${item.value.Headline}</h3>
</c:if>
<p ${item.rdfa.text}>${item.value.Text}</p>
</div>
</div>
</c:forEach>
</div>

Logo component - In design mode unable to see the edit toolbar for this component

<%#include file="/libs/foundation/global.jsp"
%>
<div class="container_16">
<div class="grid_8">
<cq:include path="logo" resourceType="/apps/traningCQ5/components/logo" />
</div>
<div class="grid_8">
<div class="search_area">
<div> userinfo </div>
<div> toptoolbar </div>
<div> search </div>
<div
class="clear"></div> </div>
</div>
</div>
The above code includes logo component. This is added in header.jsp however, if I add this component anywhere else it works but not in header.
Could any please help me in this ?

CQ5 : Could not edit CQ5 Text Component in Hidden container

We are developing a Tab Component in CQ5/AEM. The component contains 3 Tabs and each tab has one CQ5 text component to edit content.
But only the first tab's Text Component is editable as it is shown by default. The other text components which are in hidden tabs content area are not accessible to edit.
Sample code:
<div>
<div>
<div id="tabcnt1">
<div id="tab1" class="tablink">Tab 1</div>
</div>
<div id="tabcnt2">
<div id="tab2" class="tablink">Tab 2</div>
</div>
<div id="tabcnt3">
<div id="tab3" class="tablink">Tab 3</div>
</div>
</div>
<div class="plantabcontent">
<div id="plancontenttab1" class="plancontent">
<cq:include path="plandescription1" resourceType="libs/foundation/components/text" />
</div>
<div id="plancontenttab2" class="plancontent" style="display:none;">
<cq:include path="plandescription2" resourceType="libs/foundation/components/text" />
</div>
<div id="plancontenttab3" class="plancontent" style="display:none;">
<cq:include path="plandescription3" resourceType="libs/foundation/components/text" />
</div>
</div>
Script:
$(document).ready(function(){
$('.tablink').click(function(){
$(".tablink").removeClass('selecttab').addClass('plantxt');
var tabid = $(this).attr("id");
$("#"+tabid).addClass('selecttab').removeClass('plantxt');
$(".plancontent").hide();
$("#plancontent"+tabid).show();
});
});
The 'plandescription1' is visible by default and it is working fine. But the hidden text components are not working while enabling them by changing tabs.
Kindly show me some light. Thanks in advance.
It's important to load the tab components (text component) when loading the page. In case the components are disabled by default the components are not initialized by AEM. So disable the 'hidden' tabs on document.ready instead of using the style="display:none".
In the example I have added the $("div.plancontent:not(:first)").hide(); to disable all tabs except the first.
Example:
<div>
<div>
<div id="tab1" class="tablink">Tab 1</div>
<div id="plancontenttab1" class="plancontent">
<cq:include path="plandescription1" resourceType="/libs/foundation/components/text" />
</div>
</div>
<div>
<div id="tab2" class="tablink">Tab 2</div>
<div id="plancontenttab2" class="plancontent">
<cq:include path="plandescription2" resourceType="/libs/foundation/components/text" />
</div>
</div>
<div >
<div id="tab3" class="tablink">Tab 3</div>
<div id="plancontenttab3" class="plancontent">
<cq:include path="plandescription3" resourceType="/libs/foundation/components/text" />
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
//Disable all tabs except first
$("div.plancontent:not(:first)").hide();
//Set clickevent
$('.tablink').click(function(){
$(".tablink").removeClass('selecttab').addClass('plantxt');
var tabid = $(this).attr("id");
$("#"+tabid).addClass('selecttab').removeClass('plantxt');
$(".plancontent").hide();
$("#plancontent"+tabid).show();
});
});
</script>

Spring form errors custom html

I need to do something like that:
<form:errors path="*">
<div class="error">
<div class="internal">
${error}
</div>
<div class="bar"> </div>
<div class="internal">
<input type="button" value="Ok" />
</div>
</div>
</form:errors>
How can I get all the error messages by using the above HTML code? :S
By using <form:errors path="*" cssClass="error" /> it will be inside only one tag
You can use the spring:bind tag to bind a status-variable to your current error messages. Then you can iterate over status.errorMessages like in the example below.
<spring:bind path="*">
<c:forEach items="${status.errorMessages}" var="error">
<div class="error">
<div class="internal">
${error}
</div>
<div class="bar"> </div>
<div class="internal">
<input type="button" value="Ok" />
</div>
</div>
</c:forEach>
</spring:bind>
Don't forget to add the taglib declaration for spring: tags on top of your page:
<%# taglib prefix="spring" uri="http://www.springframework.org/tags"%>