Skip to content

Instantly share code, notes, and snippets.

View scottmcarthur's full-sized avatar

Scott McArthur scottmcarthur

  • Edinburgh, United Kingdom
View GitHub Profile
@scottmcarthur
scottmcarthur / Handlebars Remote
Created December 27, 2013 09:29
Remote Handlebars File
<h1>Hello World</h1>
Hello {{name}}
<strong>I was loaded from a URL!</strong>
@scottmcarthur
scottmcarthur / SelectBoxComponent.js
Last active December 29, 2015 04:19
Ember.js Bootstrap 3 Select Box. Creates a dynamically populated drop down list, that is styled using Bootstrap 3.
App.SelectBoxComponent = Ember.Component.extend({
// Container is <div class="btn-group app-selectbox">
classNames: ["btn-group", "app-selectbox"],
tagName: "div",
// Set attribute "fullWidth=true" to expand 100%
fullWidth: false,
classNameBindings: ["fullWidth"],
// Source data (the same as Ember.Select)