Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FLUID-5754: A bit of clean-up; remove localization; add a README
- Loading branch information
Showing
7 changed files
with
44 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
## Minimal Preferences Editor ## | ||
|
||
This folder provides an example of a minimal but fully functional preferences editor. It has: | ||
- only one preference | ||
- no enactor | ||
- no localization (Note that this is not best practice!) | ||
|
||
This code is the basis for the Preferences Framework tutorial. |
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
7 changes: 4 additions & 3 deletions
7
examples/framework/preferences/minimalEditor/html/autoPilot.html
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,7 +1,8 @@ | ||
<!-- This file is the template for the auto-pilot preference panel --> | ||
<section class="me-panel"> | ||
<h2 class="mec-autoPilot-header">header here</h2> | ||
<h2>Auto-Pilot</h2> | ||
|
||
<label for="minEditor-autoPilot" class="mec-autoPilot-label">label here</label> | ||
<input type="checkbox" id="minEditor-autoPilot" class="mec-autoPilot"/> | ||
<label for="minEditor-autoPilot">Enable the auto-pilot when the car starts</label> | ||
<input type="checkbox" id="minEditor-autoPilot" class="mec-autoPilot"/> | ||
</section> | ||
|
7 changes: 3 additions & 4 deletions
7
examples/framework/preferences/minimalEditor/html/minEditor.html
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,9 +1,8 @@ | ||
<!-- This file is the template for the entire Preference Editor --> | ||
<h1>A simple preferences editor</h1> | ||
<h1>Flying Car Setup</h1> | ||
<p>This preferences editor ...</p> | ||
|
||
<!-- placeholder for the auto-pilot preference panel --> | ||
<div class="mec-autoPilot"></div> | ||
|
||
<button class="flc-prefsEditor-save me-save">Save</button> | ||
|
||
<!-- what about localizing the 'save' text? --> | ||
<button class="flc-prefsEditor-save me-save">save</button> |
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
4 changes: 0 additions & 4 deletions
4
examples/framework/preferences/minimalEditor/messages/autoPilot.json
This file was deleted.
Oops, something went wrong.