Skip to content

Instantly share code, notes, and snippets.

@lolmaus
Last active June 19, 2019 09:49
Show Gist options
  • Save lolmaus/4860f5d660dceadc804495d2720f69f6 to your computer and use it in GitHub Desktop.
Save lolmaus/4860f5d660dceadc804495d2720f69f6 to your computer and use it in GitHub Desktop.
ember-bootstrap + ember-autoresize
import Ember from 'ember';
export default Ember.Controller.extend({
appName: "Ember\nTwiddle",
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{#bs-form model=this formLayout="vertical" as |form|}}
{{#form.element label="Modified" placeholder="Enter description..." property="appName" as |el|}}
{{textarea autoresize=true value=el.value class="form-control"}}
{{/form.element}}
{{form.element label="Inline" placeholder="Enter description..." property="appName" controlType="textarea"}}
{{/bs-form}}
{
"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-bootstrap": "2.8.0",
"ember-autoresize": "1.3.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment