Forum Discussion

Gursimrat's avatar
Gursimrat
Leader
11 years ago

Using the dropdown options for custom component

We have a custom components for the boards pages to display all the threads in a new UI. Now that we have achieved almost everything which was required, I need to get the answers of few questions.

 

How would I use the options in the dropdown?

When I turn on the batch processing, how can we get the checkboxes and then have the default behaviour? 

  • 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?

    • Gursimrat's avatar
      Gursimrat
      Leader

      We basically need to add the check boxes corresponding to my list of threads inside my custom component, so that I can use the batch process commands as well in the options menu, such as moving checked threads and deleting checked threads.

       

      Thanks

    • This is what I'm trying to do... is this possible to use the built-in options dropdown in a custom component?

      • samudhraa's avatar
        samudhraa
        Expert

        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