html












<figure>
	<img src='/img/components/dockable-panels/dockable-panels-1500x750.jpg' width='100%' />
	<figcaption></figcaption>
</figure>

##### Premium DOM Component

# Dockable Panels

## Expand, collapse, dock and float


<address>
<img src='/img/48x48/rwtools.png' /> by <a href='https://readwritetools.com' title='Read Write Tools'>Read Write Tools</a> <time datetime=2020-11-05>Nov 5, 2020</time></address>



<table>
	<tr><th>Abstract</th></tr>
	<tr><td>The <span class=product>rwt-dockable-panels</span> DOM component is an accordion-style component with panels that expand/collapse and dock/float.</td></tr>
</table>

### Motivation

Some apps have lots of interactive manipulations for working with a canvas or
object. Putting the tools and options for these manipulation commands within
menus is a weak design pattern. The use of floatable, dockable, and collapsable
panels is a better alternative because it lets the user initiate commands with
shorter mouse transit times and fewer clicks. It also provides the user with a
personalized mental map of where the commands can be initiated, something that a
hierarchical menu doesn't do well.

The component has these features:

   * The component comprises a collection of panels that contain logically related
      information.
   * Each panel has a titlebar for self-identification and a panel area comprising
      DOM elements.
   * The titlebar has an expand/collapse button which allows the panel's elements to
      be shown or hidden.
   * The titlebar has a float/dock button which allows the panel to be
      detached/attached from the main panel.
   * Floating panels can be moved with the mouse by dragging the titlebar.
   * The initial position of the menu is relative to any one of the four viewport
      corners.

#### In the wild

To see an example of this component in use, visit the <a href='https://simply.earth'>simply.earth</a>
website. It uses this component for its Tangent, Scale, Rotate, Locate, and
Identify panels. To understand what's going on under the hood, use the browser's
inspector to view the HTML source code and network activity, and follow along as
you read this documentation.

### Installation

#### Prerequisites

The <span>rwt-dockable-panels</span> DOM component works in any
browser that supports modern W3C standards. Templates are written using <span>
BLUE</span><span>PHRASE</span> notation, which can be compiled into HTML using the
free <a href='https://hub.readwritetools.com/desktop/rwview.blue'>Read Write View</a>
desktop app. It has no other prerequisites. Distribution and installation are
done with either NPM or via Github.

#### Download


<details>
	<summary>Download using NPM</summary>
	<p><b><code>OPTION</code> 1:</b> Familiar with Node.js and the <code>package.json</code> file?<br />Great. Install the component with this command:</p>
	<pre lang=bash>
npm install rwt-dockable-panels<br />	</pre>
	<p><b><code>OPTION</code> 2:</b> No prior experience using NPM?<br />Just follow these general steps:</p>
	<ul>
		<li>Install <a href='https://nodejs.org'>Node.js/NPM</a> on your development computer.</li>
		<li>Create a <code>package.json</code> file in the root of your web project using the command:</li>
		<pre lang=bash>
npm init<br />		</pre>
		<li>Download and install the DOM component using the command:</li>
		<pre lang=bash>
npm install rwt-dockable-panels<br />		</pre>
	</ul>
	<p style='font-size:0.9em'>Important note: This DOM component uses Node.js and NPM and <code>package.json</code> as a convenient <i>distribution and installation</i> mechanism. The DOM component itself does not need them.</p>
</details>


<details>
	<summary>Download using Github</summary>
	<p>If you prefer using Github directly, simply follow these steps:</p>
	<ul>
		<li>Create a <code>node_modules</code> directory in the root of your web project.</li>
		<li>Clone the <span class=product>rwt-dockable-panels</span> DOM component into it using the command:</li>
		<pre lang=bash>
git clone https://github.com/readwritetools/rwt-dockable-panels.git<br />		</pre>
	</ul>
</details>

### Using the DOM component

After installation, you need to add two things to your HTML page to make use of
it:

   1. Add a `script` tag to load the component's `rwt-dockable-panels.js` file:
```html
<script src='/node_modules/rwt-dockable-panels/rwt-dockable-panels.js' type=module></script>             
```

   2. Add the component tag somewhere on the page.

      * For scripting purposes, apply an `id` attribute.
      * For WAI-ARIA accessibility apply a `role=contentinfo` attribute.
      * Apply a `corner` attribute with one of these values to set the location of the
         toolbar relative to its parent.

         * `top-right`
         * `top-left`
         * `bottom-right`
         * `bottom-left` [default]
      * Apply a `sourceref` attribute with a reference to a JSON file containing the panel
         configuration. (Or optionally use the programmatic interface for panel
         configuration.)
      * Optionally, apply a `state` attribute to set the initial state of the toolbar.

         * `closed` The toolbar menu should initially be collapsed.
         * `open` [default] The toolbar menu should initially be expanded.
      * Optionally, apply a `shortcut` attribute with a value like `'F1'`, `'F2'`, `'F3'`, to
         allow the toolbar to be opened and closed using the keyboard.
      * Optionally, apply an `embedded` attribute with a value of "embedded" when the
         component is used inside another DOM component.

Example:

```html
<rwt-dockable-panels id=toolbarId sourceref='/panels.json' corner=top-right state=open shortcut='F1' role=contentinfo></rwt-dockable-panels>
```

### Panel configuration

The panels can be configured programmatically or through a JSON file. Both
accept similar objects, described here:

#### JSON file configuration

A JSON file containing a collection of panel configurations can be specified as
an attribute of the component. Do this with HTML like `<rwt-dockable-panels sourceref='panels.json'></rwt-dockable-panels>`
The JSON object should contain an object with two properties:

   1. `toolbar` an object for configuring the entire component, having:

      * `titlebar` the plain text or HTML to use for the main menu.
   2. `panels` an array of panel objects for configuring the panels, having:

      * `options` an object to configure each panel's basic properties:

         * `id` the HTML identifier for the panel
         * `titlebar` the text title for the panel
         * `tabIndex` the HTML tabIndex, optional
         * `tooltip` the fly-over popup title for the panel, optional
      * `panelLines` an array of line objects to configure the elements of the panel, line
         by line.

         * `lineType` specifies what to put on the line, see below
         * `id` the HTML identifier for the line's principal element, see below

These are the possible lineTypes and their configuration properties:

   1. `"input"`

      * `labelText` the text to place before the `INPUT` element
      * `id` the identifier for the `INPUT` element
      * `textAfter` any text to place after the `INPUT` element, optional
      * `tooltip` the fly-over popup title for the `INPUT` element, optional
   2. `"button"`

      * `buttonText` the text to place on the `BUTTON` element
      * `id` the identifier for the `BUTTON` element
      * `tooltip` the fly-over popup title for the `BUTTON` element, optional
   3. `"multi-button"`

      * `buttons` an array of objects to define each button, having:

         * `buttonText` the text to place on the `BUTTON` element
         * `id` the identifier for the `BUTTON` element
         * `tooltip` the fly-over popup title for the `BUTTON` element, optional
   4. `"dropdown"`

      * `labelText` the text to place before the `SELECT` element
      * `id` the identifier for the `SELECT` element
      * `tooltip` the fly-over popup title for the `SELECT` element, optional
      * `selections` an array of `OPTION`S, specified as objects, each having:

         * `v` the `OPTION` value
         * `t` the `OPTION` text
   5. `"slider+input"`

      * `id` is the identifier to be assigned to the text `INPUT` being created (the range
         slider will append "-slider" to this id)
      * `curve` is the distribution of slider values: "callback", "linear" or "log";
         defaults to linear if not defined
      * `fromSlider` is a callback function that synchronizes `INPUT` value when the current
         slider position changes
      * `toSlider` is a callback function that synchronizes the current slider position
         when the `INPUT` value changes
      * `fromUser` is a callback function to convert user text to internal value
      * `toUser` is a callback function to convert internal value to user text
      * `numDecimals` is the number of decimal points kept in the internal value (defaults
         to 2).
      * `minValue` is the minimum acceptable "value" in user units; defaults to "" if not
         specified
      * `maxValue` is the maximum acceptable "value" in user units; defaults to "" if not
         specified
      * `minPosition` is the minimum slider position; defaults to 0 if not specified
      * `maxPosition` is the maximum slider position; defaults to 100 if not specified
      * `stepPosition` is the accuracy of the slider; defaults to 1 if not specified
      * `labelText` is the text to be displayed in the `LABEL` before the two `INPUT` elements
      * `tooltip` is the text to display on hover, optional
      * `widthInPx` is a string value specifying the width of the input field, with a
         trailing 'px', optional
      * `textAfter` is the optional short text to display after the `INPUT`, optional
   6. `"generic"`

      * `id` the identifier for the "chef-generic" panel's outer `DIV` element
      * `innerHTML` is the generic HTML to be displayed
      * `heightInPx` the CSS value for the panel's height, defaults to 'fit-content'
      * `overflowX` Whether to show a horizontal scrollbar: "scroll", "hidden", "clip",
         "auto"
      * `overflowY` Whether to show a vertical scrollbar: "scroll", "hidden", "clip",
         "auto"
   7. `"custom"`

      * `id` the identifier for the "chef-custom" panel's outer `DIV` element
      * `innerHTML` is the custom HTML to be displayed
      * `heightInPx` the CSS value for the panel's height, defaults to 'fit-content'
      * `overflowX` Whether to show a horizontal scrollbar: "scroll", "hidden", "clip",
         "auto"
      * `overflowY` Whether to show a vertical scrollbar: "scroll", "hidden", "clip",
         "auto"
   8. `"table"`

      * `id` is the identifier to be assigned to the `TABLE` being created
      * `innerHTML` is the TABLE's inner HTML
      * `minHeightInPx` is a number of pixels, expressed as a string ending in 'px', like
         '156px'
      * `maxHeightInPx` is a number of pixels, expressed as a string ending in 'px', like
         '156px'
      * `heightInPx` the CSS value for the panel's height, defaults to '100%'
      * `overflowX` Whether to show a horizontal scrollbar: "scroll", "hidden", "clip",
         "auto"
      * `overflowY` Whether to show a vertical scrollbar: "scroll", "hidden", "clip",
         "auto"

#### Programmatic configuration

The component has methods to programmatically configure panels. They use objects
with the same properties as just described. The methods are:


<dl>
	<dt>setTitlebar (html)</dt>
	<dd>sets the topmost menu titlebar</dd>
	<dt>appendPanel (panelId, options, panelLines)</dt>
	<dd>
		<span>creates a new panel and adds it to the component, returning <code>elPanel</code> which can be used in subsequent API methods.</span>
		<ul>
			<li><code>panelID</code> is a String which will be the identifer for the panel</li>
			<li><code>options</code> is an anonymous object having:</li>
			<ul>
				<li><code>titlebar</code> String</li>
				<li><code>expandable</code> Boolean, defaults to true</li>
				<li><code>dockable</code> Boolean, defaults to true</li>
				<li><code>tabIndex</code> Number</li>
				<li><code>tooltip</code> String</li>
			</ul>
			<li><code>panelLines</code> is an array of anonymous objects each containing the <code>options</code> for a single line within the panel area below the titlebar, and where the <code>lineType</code> determines which other properties are used.</li>
		</ul>
	</dd>
	<dt>appendInputLine (elPanel, options)</dt>
	<dd>
		<span>The appendInputLine function creates a line with a label and an input. The possible <code>options</code> are:</span>
		<ul>
			<li><code>lineType</code> must have a value of <code>'input'</code></li>
			<li><code>labelText</code> the text to place before the <code>INPUT</code> element</li>
			<li><code>id</code> the identifier for the <code>INPUT</code> element</li>
			<li><code>textAfter</code> any text to place after the <code>INPUT</code> element, optional</li>
			<li><code>tooltip</code> the fly-over popup title for the <code>INPUT</code> element, optional</li>
		</ul>
	</dd>
	<dt>appendSingleButton (elPanel, options)</dt>
	<dd>
		<span>creates an internal button for doing something user-defined. The possible <code>options</code> are:</span>
		<ul>
			<li><code>lineType</code> must have a value of <code>'button'</code></li>
			<li><code>buttonText</code> the text to place on the <code>BUTTON</code> element</li>
			<li><code>id</code> the identifier for the <code>BUTTON</code> element</li>
			<li><code>tooltip</code> the fly-over popup title for the <code>BUTTON</code> element, optional</li>
		</ul>
	</dd>
	<dt>appendMultiButtons (elPanel, options)</dt>
	<dd>
		<span>creates multiple buttons that logically work together and visually appear on one line. The possible <code>options</code> are:</span>
		<span><code>buttons</code> is an array of objects, each having:</span>
		<ul>
			<li><code>lineType</code> must have a value of <code>'multi-button'</code></li>
			<li><code>buttonText</code> the text to place on the <code>BUTTON</code> element</li>
			<li><code>id</code> the identifier for the <code>BUTTON</code> element</li>
			<li><code>tooltip</code> the fly-over popup title for the <code>BUTTON</code> element, optional</li>
		</ul>
	</dd>
	<dt>appendDropdown (elPanel, options)</dt>
	<dd>
		<span>creates a line with a label and a select element. The possible <code>options</code> are:</span>
		<ul>
			<li><code>lineType</code> must have a value of <code>'dropdown'</code></li>
			<li><code>labelText</code> the text to place before the <code>SELECT</code> element</li>
			<li><code>id</code> the identifier for the <code>SELECT</code> element</li>
			<li><code>tooltip</code> the fly-over popup title for the <code>SELECT</code> element, optional</li>
			<li><code>selections</code> an array of <code>OPTION</code>S, specified as objects, each having:</li>
			<ul>
				<li><code>v</code> the <code>OPTION</code> value</li>
				<li><code>t</code> the <code>OPTION</code> text</li>
			</ul>
		</ul>
	</dd>
	<dt>appendSliderWithInput (elPanel, options)</dt>
	<dd>
		<span>creates a line with a label and two <code>INPUT</code>s: a slider/input combo. The possible <code>options</code> are:</span>
		<ul>
			<li><code>lineType</code> must have a value of <code>'slider+input'</code></li>
			<li><code>id</code> is the identifier to be assigned to the text <code>INPUT</code> being created (the range slider will append "-slider" to this id)</li>
			<li><code>curve</code> is the distribution of slider values: "callback", "linear" or "log"; defaults to linear if not defined</li>
			<li><code>fromSlider</code> is a callback function that synchronizes <code>INPUT</code> value when the current slider position changes</li>
			<li><code>toSlider</code> is a callback function that synchronizes the current slider position when the <code>INPUT</code> value changes</li>
			<li><code>fromUser</code> is a callback function to convert user text to internal value</li>
			<li><code>toUser</code> is a callback function to convert internal value to user text</li>
			<li><code>numDecimals</code> is the number of decimal points kept in the internal value (defaults to 2).</li>
			<li><code>minValue</code> is the minimum acceptable "value" in user units; defaults to "" if not specified</li>
			<li><code>maxValue</code> is the maximum acceptable "value" in user units; defaults to "" if not specified</li>
			<li><code>minPosition</code> is the minimum slider position; defaults to 0 if not specified</li>
			<li><code>maxPosition</code> is the maximum slider position; defaults to 100 if not specified</li>
			<li><code>stepPosition</code> is the accuracy of the slider; defaults to 1 if not specified</li>
			<li><code>labelText</code> is the text to be displayed in the <code>LABEL</code> before the two <code>INPUT</code> elements</li>
			<li><code>tooltip</code> is the text to display on hover, optional</li>
			<li><code>widthInPx</code> is a string value specifying the width of the input field, with a trailing 'px', optional</li>
			<li><code>textAfter</code> is the optional short text to display after the <code>INPUT</code>, optional</li>
		</ul>
	</dd>
	<dt>appendGenericArea (elPanel, options)</dt>
	<dd>
		<span>creates a &lt;div&gt; styled with CSS class 'chef-generic'. The possible <code>options</code> are:</span>
		<ul>
			<li><code>lineType</code> must have a value of <code>'generic'</code></li>
			<li><code>id</code> the identifier for the generic panel's outer <code>DIV</code> element</li>
			<li><code>innerHTML</code> is the generic HTML to be displayed</li>
			<li><code>heightInPx</code> the CSS value for the panel's height, defaults to 'fit-content'</li>
			<li><code>overflowX</code> Whether to show a horizontal scrollbar: "scroll", "hidden", "clip", "auto"</li>
			<li><code>overflowY</code> Whether to show a vertical scrollbar: "scroll", "hidden", "clip", "auto"</li>
		</ul>
	</dd>
	<dt>appendCustomArea (elPanel, options)</dt>
	<dd>
		<span>creates a &lt;div&gt; styled with CSS class 'chef-custom'. The possible <code>options</code> are:</span>
		<ul>
			<li><code>lineType</code> must have a value of <code>'custom'</code></li>
			<li><code>id</code> the identifier for the custom panel's outer <code>DIV</code> element</li>
			<li><code>innerHTML</code> is the custom HTML to be displayed</li>
			<li><code>heightInPx</code> the CSS value for the panel's height, defaults to 'fit-content'</li>
			<li><code>overflowX</code> Whether to show a horizontal scrollbar: "scroll", "hidden", "clip", "auto"</li>
			<li><code>overflowY</code> Whether to show a vertical scrollbar: "scroll", "hidden", "clip", "auto"</li>
		</ul>
	</dd>
	<dt>appendTableArea (elPanel, options)</dt>
	<dd>
		<span>creates a &lt;table&gt; suitable for use with dynamic HTML. The possible <code>options</code> are:</span>
		<ul>
			<li><code>lineType</code> must have a value of <code>'table'</code></li>
			<li><code>id</code> is the identifier to be assigned to the <code>TABLE</code> being created</li>
			<li><code>innerHTML</code> is the TABLE's inner HTML</li>
			<li><code>minHeightInPx</code> is a number of pixels, expressed as a string ending in 'px', like '156px'</li>
			<li><code>maxHeightInPx</code> is a number of pixels, expressed as a string ending in 'px', like '156px'</li>
			<li><code>heightInPx</code> the CSS value for the panel's height, defaults to '100%'</li>
			<li><code>overflowX</code> Whether to show a horizontal scrollbar: "scroll", "hidden", "clip", "auto"</li>
			<li><code>overflowY</code> Whether to show a vertical scrollbar: "scroll", "hidden", "clip", "auto"</li>
		</ul>
	</dd>
</dl>

#### Programmatic manipulation

The component also has methods to programmatically manipulate the toolbar and
its panels.


<dl>
	<dt>openToolbar ()</dt>
	<dd>shows all the panels in their current expand/collapse state</dd>
	<dt>closeToolbar ()</dt>
	<dd>leaves only the 'hamburger' button visible</dd>
	<dt>toggleToolbar ()</dt>
	<dd>reverse the current toolbar expand/collapse state</dd>
	<dt>expandPanel (panelID)</dt>
	<dd>shows all of the panel's lines</dd>
	<dt>collapsePanel (panelID)</dt>
	<dd>shows only the panel's titlebar</dd>
	<dt>detachPanel (panelID)</dt>
	<dd>detaches the panel from the toolbar, allowing it to float independently</dd>
	<dt>attachPanel (panelID)</dt>
	<dd>reattaches the panel to the toolbar</dd>
	<dt>presetDetachedX(panelID, css)</dt>
	<dd>Preset the panel's distance from left edge / right edge of the component when detached. "css" is the value to assign to the component's "left" or "right" CSS property.</dd>
	<dt>presetDetachedY(panelID, css)</dt>
	<dd>Preset the panel's distance from top edge / bottom edge of the component when detached. "css" is the value to assign to the component's "top" or "bottom" CSS property.</dd>
	<dt>presetDetachedWidth(panelID, css)</dt>
	<dd>Preset the panel's width when detached. "css" is the value to assign to the component's "width" CSS property.</dd>
	<dt>presetDetachedHeight(panelID, css)</dt>
	<dd>Preset the panel's height when detached. "css" is the value to assign to the component's "height" CSS property.</dd>
</dl>

#### Programmatic access

The component has methods to access the inner buttons and titlebars.


<dl>
	<dt>getMenuElement (panelID)</dt>
	<dd>returns the panel with the given identifer</dd>
	<dt>getExpandButton (panelID)</dt>
	<dd>returns the expand/collapse button for a given panel</dd>
	<dt>getFloatButton (panelID)</dt>
	<dd>returns the float/dock button for a given panel</dd>
	<dt>getTitlebar (panelID)</dt>
	<dd>returns the titlebar for a given panel</dd>
</dl>

### Customization

#### Initial position

Initially the toolbar is positioned a certain distance from one of the
viewport's corners, specified using the `corner` attribute and two of these offset
variables.

```css
rwt-dockable-panels {
    --top: 30px;
    --bottom: 30px;
    --left: 30px;
    --right: 30px;
    --z-index: 1;
}
```

#### Visuals and color scheme

The font for the component can be changed with the `--font-family` variable.

The width of the component can be set with the `--width` variable.

The default color palette for the menu uses a dark mode theme. You can use CSS
to override the variables' defaults:

```css
rwt-dockable-panels {
    --color: var(--pure-white);
    --border-color: var(--pure-white);
    --background-color1: var(--surfie-green);
    --background-color2: var(--coral-atoll);
    --background-color3: var(--tiber);
    --background-color4: var(--eden);
}
```

### Life-cycle events

The component issues life-cycle events.


<dl>
	<dt><code>component-loaded</code></dt>
	<dd>Sent when the component is fully loaded and ready to be used. As a convenience you can use the <code>waitOnLoading()</code> method which returns a promise that resolves when the <code>component-loaded</code> event is received. Call this asynchronously with <code>await</code>.</dd>
</dl>

---

### Reference


<table>
	<tr><td><img src='/img/48x48/read-write-hub.png' alt='DOM components logo' width=48 /></td>	<td>Documentation</td> 		<td><a href='https://hub.readwritetools.com/components/dockable-panels.blue'>READ WRITE HUB</a></td></tr>
	<tr><td><img src='/img/48x48/git.png' alt='git logo' width=48 /></td>	<td>Source code</td> 			<td><a href='https://github.com/readwritetools/rwt-dockable-panels'>github</a></td></tr>
	<tr><td><img src='/img/48x48/dom-components.png' alt='DOM components logo' width=48 /></td>	<td>Component catalog</td> 	<td><a href='https://domcomponents.com/components/dockable-panels.blue'>DOM COMPONENTS</a></td></tr>
	<tr><td><img src='/img/48x48/npm.png' alt='npm logo' width=48 /></td>	<td>Package installation</td> <td><a href='https://www.npmjs.com/package/rwt-dockable-panels'>npm</a></td></tr>
	<tr><td><img src='/img/48x48/read-write-stack.png' alt='Read Write Stack logo' width=48 /></td>	<td>Publication venue</td>	<td><a href='https://readwritestack.com/components/dockable-panels.blue'>READ WRITE STACK</a></td></tr>
</table>

### License

The <span>rwt-dockable-panels</span> DOM component is not
freeware. After evaluating it and before using it in a public-facing website,
eBook, mobile app, or desktop application, you must obtain a license from <a href='https://readwritetools.com/licensing.blue'>Read Write Tools</a>
.

<img src='/img/blue-seal-premium-software.png' width=80 align=right />

<details>
	<summary>Dockable Panels Software License Agreement</summary>
	<p>Copyright © 2023 Read Write Tools.</p>
	<ol>
		<li>This Software License Agreement ("Agreement") is a legal contract between you and Read Write Tools ("RWT"). The "Materials" subject to this Agreement include the "Dockable Panels" software and associated documentation.</li>
		<li>By using these Materials, you agree to abide by the terms and conditions of this Agreement.</li>
		<li>The Materials are protected by United States copyright law, and international treaties on intellectual property rights. The Materials are licensed, not sold to you, and can only be used in accordance with the terms of this Agreement. RWT is and remains the owner of all titles, rights and interests in the Materials, and RWT reserves all rights not specifically granted under this Agreement.</li>
		<li>Subject to the terms of this Agreement, RWT hereby grants to you a limited, non-exclusive license to use the Materials subject to the following conditions:</li>
		<ul>
			<li>You may not distribute, publish, sub-license, sell, rent, or lease the Materials.</li>
			<li>You may not decompile or reverse engineer any source code included in the software.</li>
			<li>You may not modify or extend any source code included in the software.</li>
			<li>Your license to use the software is limited to the purpose for which it was originally intended, and does not include permission to extract, link to, or use parts on a separate basis.</li>
		</ul>
		<li>Each paid license allows use of the Materials under one "Fair Use Setting". Separate usage requires the purchase of a separate license. Fair Use Settings include, but are not limited to: eBooks, mobile apps, desktop applications and websites. The determination of a Fair Use Setting is made at the sole discretion of RWT. For example, and not by way of limitation, a Fair Use Setting may be one of these:</li>
		<ul>
			<li>An eBook published under a single title and author.</li>
			<li>A mobile app for distribution under a single app name.</li>
			<li>A desktop application published under a single application name.</li>
			<li>A website published under a single domain name. For this purpose, and by way of example, the domain names "alpha.example.com" and "beta.example.com" are considered to be separate websites.</li>
			<li>A load-balanced collection of web servers, used to provide access to a single website under a single domain name.</li>
		</ul>
		<li>THE MATERIALS ARE PROVIDED BY READ WRITE TOOLS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL READ WRITE TOOLS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</li>
		<li>This license is effective for a one year period from the date of purchase or until terminated by you or Read Write Tools. Continued use, publication, or distribution of the Materials after the one year period, under any of this Agreement's Fair Use Settings, is subject to the renewal of this license.</li>
		<li>Products or services that you sell to third parties, during the valid license period of this Agreement and in compliance with the Fair Use Settings provision, may continue to be used by third parties after the effective period of your license.</li>
		<li>If you decide not to renew this license, you must remove the software from any eBook, mobile app, desktop application, web page or other product or service where it is being used.</li>
		<li>Without prejudice to any other rights, RWT may terminate your right to use the Materials if you fail to comply with the terms of this Agreement. In such event, you shall uninstall and delete all copies of the Materials.</li>
		<li>This Agreement is governed by and interpreted in accordance with the laws of the State of California. If for any reason a court of competent jurisdiction finds any provision of the Agreement to be unenforceable, that provision will be enforced to the maximum extent possible to effectuate the intent of the parties and the remainder of the Agreement shall continue in full force and effect.</li>
	</ol>
</details>

#### Activation

To activate your license, copy the `rwt-registration-keys.js` file to the *root
directory of your website*, providing the `customer-number` and `access-key` sent to
your email address, and replacing `example.com` with your website's hostname.
Follow this example:

<pre>
export default [{
    "product-key": "rwt-dockable-panels",
    "registration": "example.com",
    "customer-number": "CN-xxx-yyyyy",
    "access-key": "AK-xxx-yyyyy"
}]
</pre>

