Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to set parameter of “Title” when section is expanded in Expand Macro?

Naomi Itoh November 15, 2018

At the example in Expand Macro, the "Title" when section is collapsed is “Expand me..” and the "Title" when section is expanded is “Collapse”.

There is no description about how to set parameter of "Title" when section is expanded at Parameters although parameter setting of "Title" when section is collapsed is shown there.

Could you instruct how to set parameter of “Title” when section is expanded?

1 answer

1 accepted

0 votes
Answer accepted
Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 15, 2018

I assume you are saying you want to also customize what now has the text of "Collapse"?

If so, there is no parameter for that; it is built in. You would have to use a workaround like javascript on the page to rewrite that title, or write your own macro.

Naomi Itoh November 15, 2018

Thank you for your answer.   Your assumption is correct.   I want to customize both Title when section is expanded and collapsed.   But when I use Expand Macro, the Title is common regardless the section is expanded or collapsed.   On the other hand, in case of the example shown in Expand Macro the Title is toggled between "Expand me.." and "Collapse".   So, I'd like to know how to do.   According with your answer, do you mean that a workaround like javascript on the page to rewrite that title, or special macro is used to change Title in the example in Expand Macro?

Bill Bailey
Contributor
November 16, 2018

Yes, either javascript on the page to rewrite that text, or develop your own version of the expand macro.

Naomi Itoh November 18, 2018

Noted.  Thank you.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events