| Index: dart/site/try/src/user_option.dart
|
| diff --git a/dart/site/try/src/user_option.dart b/dart/site/try/src/user_option.dart
|
| index ce802a46cbb3f96d1b4c814018b38176fa928038..25c0f0f41446a8b5db5020d318ba9046d5c88647 100644
|
| --- a/dart/site/try/src/user_option.dart
|
| +++ b/dart/site/try/src/user_option.dart
|
| @@ -4,6 +4,23 @@
|
|
|
| library trydart.userOption;
|
|
|
| +/// Persistent user-configurable option.
|
| +///
|
| +/// Options included in [options] in settings.dart will automatically be
|
| +/// included in the settings UI unless [isHidden] is true.
|
| +///
|
| +/// The value of an option is persisted in [storage] which is normally the
|
| +/// browser's "localStorage", and [name] is a key in "localStorage". This
|
| +/// means that hidden options can be controlled by opening the JavaScript
|
| +/// console and evaluate:
|
| +///
|
| +/// localStorage['name'] = value // or
|
| +/// localStorage.name = value
|
| +///
|
| +/// An option can be reset to the default value using:
|
| +///
|
| +/// delete localStorage['name'] // or
|
| +/// delete localStorage.name
|
| class UserOption {
|
| final String name;
|
|
|
|
|