-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve demo with two-way binding example.
- Loading branch information
Showing
12 changed files
with
59 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
// SASS! | ||
|
||
.well { | ||
background-color: gray; | ||
border-radius: 5px; | ||
|
||
li { | ||
padding: 5px; | ||
} | ||
.jsoneditor-component { | ||
height: 300px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,47 @@ | ||
<div class=""> | ||
<h1 class="">Welcome to Ember-JSONEditor</h1> | ||
<div class="container"> | ||
|
||
<h2>Editor</h2> | ||
<div class="jumbotron"> | ||
<h2>Welcome to Ember-JSONEditor</h2> | ||
<p>Ember component to view, edit and format JSON.</p> | ||
<p><a class="btn btn-primary btn-lg" target="_blank" href="https://github.com/Glavin001/ember-jsoneditor" role="button">Learn more</a></p> | ||
</div> | ||
|
||
{{json-editor json=model mode=controller.mode name=controller.name}} | ||
<div class="well"> | ||
<h4>Features</h4> | ||
<ul> | ||
<li>Two-Way Bindings</li> | ||
<li>Set <em>name</em> and <em>mode</em> with component</li> | ||
</ul> | ||
<hr/> | ||
<p>Try it out for yourself!</p> | ||
</div> | ||
|
||
<hr/> | ||
<div class="row"> | ||
<div class="col-sm-6"> | ||
|
||
<h2>Options</h2> | ||
<h3>Editor 1</h3> | ||
|
||
Name: {{input value=controller.name}} | ||
{{json-editor json=model mode=controller.mode name=controller.name}} | ||
|
||
<br/> | ||
<h2>Options</h2> | ||
|
||
Mode: {{view Ember.Select content=controller.modes value=controller.mode}} | ||
Name: {{input value=controller.name}} | ||
|
||
<h2>Raw JSON</h2> | ||
<br/> | ||
|
||
<pre>{{pretty-print model undefined 4}}</pre> | ||
Mode: {{view Ember.Select content=controller.modes value=controller.mode}} | ||
|
||
</div> | ||
<div class="col-sm-6"> | ||
|
||
<h3>Editor 2</h3> | ||
|
||
{{json-editor json=model mode="code" name="Two-Way Bindings"}} | ||
|
||
<h2>Raw JSON</h2> | ||
|
||
<pre>{{pretty-print model undefined 4}}</pre> | ||
|
||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
11 changes: 6 additions & 5 deletions
11
dist/scripts/839dfd23.components.js → dist/scripts/8578e3f0.components.js
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.