Forum Discussion
You might need to give some more details about what you're trying to do. Are you trying to recreate the options dropdown inside a custom component?
This is what I'm trying to do... is this possible to use the built-in options dropdown in a custom component?
- samudhraa11 years agoExpert
HI bryanpollack ,
I have done a similar thing , where I had to bring the the standard dropdown option of board page , withing a custom component.
Here it the sample code .
<div id="forum-title-wrapper">
<h1 class="forum-title">${boardTitle}</h1>
<@component id="menu-bar"/>
</div>I later did a bit of styling to position the dropdown . You might have to be mindful of the page context where you are including the standard menu bar component. (It is usually better and safer if the standard component already exists in the page ,and we are just re-positioning it)
Hope that helps.
Thanks,
Sam
- bryanpollack11 years agoAceThis is for the Topic Options, right? I'm looking for the options dropdown on each individual topic Post. Thanks!
- samudhraa11 years agoExpert
Hi bryanpollack ,
I don't think the dropdown option is available as a separate standard component in Forum Topic Page , its a part of the message-list component.
If you want to use the dropdown option inside a custom component in that page , a work around would be to manipulate it using jQuery. Here is a sample code that I have used.
To move the dropdown option inside my custom component.
jQuery('#customcomponent').append(jQuery('.lia-message-options'));
To copy the dropdown option to custom component.
jQuery( ".lia-message-options" ).clone().appendTo( "#customcomponent" );
Hope that helps.
Thanks,
Sam
Related Content
- 5 years ago