Semantic-UI icon indicating copy to clipboard operation
Semantic-UI copied to clipboard

dropdown with styled cursor on top with positioning

Open syrein opened this issue 12 years ago • 4 comments

Hi guys,

I want to styling the dropdown menu when it drop's down I want to style the top of the dropdown menu like the same thing that we have for popups,

Any help is appreciated :)

syrein avatar Aug 22 '14 15:08 syrein

@syrein You can trigger popups on click, and they can be pre-existing content.

$('.trigger.content')
 .popup({ 
   on: 'click',
   inline: true,
   preserve: true
});

then just include the popup content after the element

<div class="trigger content">Click me</div>
<div class="ui popup">
  My custom content here
</div>

I've used this in the past for wide dropdowns, for example you can do

<div class="trigger content">Click me</div>
<div class="ui popup">
  <div class="ui two column grid">
    <div class="column">Some left content</div>
    <div class="column">Some right content</div>
  </div>
</div>

jlukic avatar Aug 24 '14 04:08 jlukic

@jlukic Thanks for response but it has one problem and not worked fine:

  • It's not attached to Click me button it shows on bottom-right of my page which Click me is located on top right.

All I need is the styled dropdown like popuop not the one with these problems. Your help is appreciated,

syrein avatar Sep 01 '14 17:09 syrein

@syrein

I've added much more extensive documentation for this on the beta site.

Pre-existing popup examples Initializing Guide

I can't comment on your exact code without a JSFiddle. It takes too much time to both create test cases and debug all issues for SUI.

jlukic avatar Sep 04 '14 22:09 jlukic

@jlukic
I just find your Beta site and thanks for your great job! I have another question but I prefer to ask it in new issue in order to be useful for others.

syrein avatar Sep 05 '14 06:09 syrein