Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Basic Dropdown Positioning
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
body {
margin: 12px 16px;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 12pt;
overflow-y: hidden
}
.test-dropdown-content {
border: 1px solid #ccc;
border-radius: 2px;
padding: 10px;
line-height: 20px;
}
.ember-application {
overflow-y: hidden;
}
<h1>Test Dropdown Position</h1>
<br>
<div class="page-wrapper">
{{#basic-dropdown as |dd|}}
{{#dd.trigger}}
<button>
Click me
</button>
{{/dd.trigger}}
{{#dd.content class="test-dropdown-content"}}
<p>line number 1</p>
<p>line number 2</p>
<p>line number 3</p>
<p>line number 4</p>
<p>line number 5</p>
<p>line number 6</p>
<p>line number 7</p>
<p>line number 8</p>
{{/dd.content}}
{{/basic-dropdown}}
</div>
{
"version": "0.15.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js",
"ember": "3.4.3",
"ember-template-compiler": "3.4.3",
"ember-testing": "3.4.3"
},
"addons": {
"ember-basic-dropdown": "0.34.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.