Skip to main content
Oct 16, 2015 2:27 AM UTC
Solved

Accordian

Hi All,

I have accordian component. In accordian component  If i enter space in title field it is displaying blank gray bar in accordian component. so i have to trim the white space and hide the blank graybar using js

anyone is having idea on javascript code to trim the white spaces asw well as hiding  blank graybar

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Sham_HC
Sham_HCAccepted solution
Level 10
Oct 16, 2015 2:27 AM UTC

It is custom implementation & we won;t have knowledge. Just make sure to have listener or validation hook to not allow blank. If you have used pure granite ui then for validation refer http://docs.adobe.com/docs/en/aem/6-0/develop/ref/granite-ui/api/jcr_root/libs/granite/ui/components/foundation/clientlibs/foundation/js/validation/index.html

5 replies

smacdonald2008
Level 10
Oct 16, 2015 2:27 AM UTC

If you are going the custom route - use an established JS framework lib - such as:

http://jqueryui.com/accordion/

This way - you can control its style and functionality by using the library.  

Translate
Sham_HC
Sham_HCAccepted solution
Level 10
Oct 16, 2015 2:27 AM UTC

It is custom implementation & we won;t have knowledge. Just make sure to have listener or validation hook to not allow blank. If you have used pure granite ui then for validation refer http://docs.adobe.com/docs/en/aem/6-0/develop/ref/granite-ui/api/jcr_root/libs/granite/ui/components/foundation/clientlibs/foundation/js/validation/index.html

Translate
Oct 16, 2015 2:27 AM UTC

HI PFA

Translate
Level 2
Oct 16, 2015 2:27 AM UTC

You can include that grey part on condition, Why you want to use Jquery or JS.

Translate
Sham_HC
Level 10
Oct 16, 2015 2:27 AM UTC

Can you attach the screenshot of what do you mean by graybar? 

Translate