mirror of https://github.com/lukechilds/docs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
126 lines
5.1 KiB
126 lines
5.1 KiB
<!DOCTYPE html>
|
|
<html lang="en-gb" dir="ltr">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Tooltip - UIkit tests</title>
|
|
<script src="js/test.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="uk-container">
|
|
|
|
<h1>Tooltip</h1>
|
|
|
|
<div class="uk-tooltip uk-tooltip-top-center uk-display-inline-block uk-margin-remove uk-position-relative">Tooltip</div>
|
|
|
|
<div class="uk-child-width-1-2@m" uk-grid>
|
|
<div>
|
|
|
|
<h2>Position</h2>
|
|
|
|
<p uk-margin>
|
|
<button class="uk-button uk-button-default" uk-tooltip="Hello World">Top</button>
|
|
<button class="uk-button uk-button-default" uk-tooltip="title: Hello World; pos: top-left">Top Left</button>
|
|
<button class="uk-button uk-button-default" uk-tooltip="title: Hello World; pos: top-right">Top Right</button>
|
|
</p>
|
|
|
|
<p uk-margin>
|
|
<button class="uk-button uk-button-default" uk-tooltip="title: Hello World; pos: bottom">Bottom</button>
|
|
<button class="uk-button uk-button-default" uk-tooltip="title: Hello World; pos: bottom-left">Bottom Left</button>
|
|
<button class="uk-button uk-button-default" uk-tooltip="title: Hello World; pos: bottom-right">Bottom Right</button>
|
|
</p>
|
|
|
|
<p uk-margin>
|
|
<button class="uk-button uk-button-default" uk-tooltip="title: Hello World; pos: left">Left</button>
|
|
<button class="uk-button uk-button-default" uk-tooltip="title: Hello World; pos: right">Right</button>
|
|
</p>
|
|
|
|
</div>
|
|
<form>
|
|
|
|
<h2>Focused Form</h2>
|
|
|
|
<p>
|
|
<input class="uk-input uk-form-width-medium" type="text" placeholder="Input" uk-tooltip="title: Hello World; pos: left">
|
|
</p>
|
|
<p>
|
|
<input class="uk-input uk-form-width-medium" type="text" placeholder="Input" uk-tooltip="title: Hello World; pos: right">
|
|
</p>
|
|
|
|
<button class="uk-button uk-button-default" uk-tooltip="title: Hello World; delay: 500">Delay 500</button>
|
|
|
|
</form>
|
|
</div>
|
|
|
|
<h2>JavaScript Options</h2>
|
|
|
|
<div class="uk-overflow-auto">
|
|
<table class="uk-table uk-table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>Option</th>
|
|
<th>Value</th>
|
|
<th>Default</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><code>title</code></td>
|
|
<td>String</td>
|
|
<td>''</td>
|
|
<td>Tooltip title.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>pos</code></td>
|
|
<td>String</td>
|
|
<td>'bottom-left'</td>
|
|
<td>Tooltip position.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>offset</code></td>
|
|
<td>Number</td>
|
|
<td>0</td>
|
|
<td>The offset of the Tooltip.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>animation</code></td>
|
|
<td>String</td>
|
|
<td>false</td>
|
|
<td>The space separated names of animations to use. (Comma separate for animation out)</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>duration</code></td>
|
|
<td>Number</td>
|
|
<td>200</td>
|
|
<td>The animation duration.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>delay</code></td>
|
|
<td>Number</td>
|
|
<td>0</td>
|
|
<td>The show delay.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>cls</code></td>
|
|
<td>String</td>
|
|
<td>uk-active</td>
|
|
<td>The active class.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>container</code></td>
|
|
<td>Boolean</td>
|
|
<td>true</td>
|
|
<td>Define a target container via a selector to specify where the tooltip should be appended in the DOM.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|
|
|