Skip to content

Commit

Permalink
Example of using material-select multiple in the demo #143
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-krogh committed Apr 20, 2016
1 parent 8def636 commit f6386e8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
24 changes: 22 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ <h2 class="header">Material select</h2>
<option ng-repeat="value in select.choices">{{value}}</option>
</select>
</div>
<div class="section col s4">
<div class="section col s8">
<h5>You selected: <b>{{select.value1}}</b></h5>
</div>
</div>
Expand All @@ -283,14 +283,34 @@ <h5>You selected: <b>{{select.value1}}</b></h5>
&lt;option ng-repeat="value in select.choices"&gt;{{value}}&lt;/option&gt;
&lt;/select&gt;</code></pre>
</div>

<div class="row">
<h5>Multiple select</h5>
<div class="section col s4">
<select class="" ng-model="select.value3" material-select multiple watch>
<option ng-repeat="value in select.choices">{{value}}</option>
</select>
</div>
<div class="section col s8">
<h5>You selected: <b>{{select.value3}}</b></h5>
</div>
</div>
<div class="row">
<pre><code class="language-markup" ng-non-bindable>
&lt;select class="" ng-model="select.value3" material-select multiple watch&gt;
&lt;option ng-repeat="value in select.choices"&gt;{{value}}&lt;/option&gt;
&lt;/select&gt;</code></pre>
</div>


<div class="row">
<h5>Using class browser-default</h5>
<div class="section col s4">
<select class="browser-default" ng-model="select.value2">
<option ng-repeat="value in select.choices">{{value}}</option>
</select>
</div>
<div class="section col s4">
<div class="section col s8">
<h5>You selected: <b>{{select.value2}}</b></h5>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ var app = angular.module('materializeApp', ['ui.materialize'])
$scope.select = {
value1: "Option1",
value2: "I'm an option",
value3: ["Option1", "I'm an option"],
choices: ["Option1", "I'm an option", "This is materialize", "No, this is Patrick."]
};

Expand Down

0 comments on commit f6386e8

Please sign in to comment.