|
1 | | -# smart-tooltip |
2 | | -Tooltip Web Component |
| 1 | +[](https://www.webcomponents.org/element/htmlelements/smart-tooltip) |
| 2 | + |
| 3 | +# <smart-tooltip> |
| 4 | + |
| 5 | +[Live Demo ↗](https://htmlelements.com/demos/tooltip/) |
| 6 | +| |
| 7 | +[Documentation ↗](https://www.htmlelements.com/docs/) |
| 8 | +| |
| 9 | +[Installation ↗](https://www.npmjs.com/package/@smarthtmlelements/smarthtmlelements-core) |
| 10 | + |
| 11 | +[<smart-tooltip>](https://htmlelements.com/demos/tooltip/) is a Custom HTML Element providing slide show/banner rotator](https://htmlelements.com/). |
| 12 | + |
| 13 | +<!-- |
| 14 | +``` |
| 15 | +<custom-element-demo> |
| 16 | + <template> |
| 17 | + <script src="../webcomponentsjs/webcomponents-lite.js"></script> |
| 18 | + <script src="../smart-core/source/smart.core.js"></script> |
| 19 | + <link rel="stylesheet" href="../smart-core/source/styles/smart.default.css" type="text/css" /> |
| 20 | + <script> |
| 21 | + window.onload = function () { |
| 22 | + |
| 23 | + } |
| 24 | + </script> |
| 25 | + <next-code-block></next-code-block> |
| 26 | + </template> |
| 27 | +</custom-element-demo> |
| 28 | +``` |
| 29 | +--> |
| 30 | +```html |
| 31 | + <smart-button id="button">Button</smart-button> |
| 32 | + <smart-tooltip id="tooltip" selector="button" arrow>This is a tooltip for smartButton</smart-tooltip> |
| 33 | +``` |
| 34 | + |
| 35 | +[<img src="https://raw.githubusercontent.com/htmlelements/smart-tooltip/master/tooltip-web-component.png" alt="Screenshot of smart-tooltip">](https://htmlelements.com/demos/tooltip) |
| 36 | + |
| 37 | +## Getting Started |
| 38 | + |
| 39 | +Smart HTML Elements components documentation includes getting started, customization and api documentation topics. |
| 40 | + |
| 41 | +[Getting Started Documentation](https://www.htmlelements.com/docs/) |
| 42 | + |
| 43 | + |
| 44 | +## The file structure for Smart HTML Elements |
| 45 | + |
| 46 | +- `source/` |
| 47 | + |
| 48 | + Javascript files. |
| 49 | + |
| 50 | +- `source/styles/` |
| 51 | + |
| 52 | + Component CSS Files. |
| 53 | + |
| 54 | +- `demos/` |
| 55 | + |
| 56 | + Demo files |
| 57 | + |
| 58 | +## Running demos in browser |
| 59 | + |
| 60 | +1. Fork the `Smart-HTML-Elements-Core` repository and clone it locally. |
| 61 | + |
| 62 | +1. Make sure you have [npm](https://www.npmjs.com/) installed. |
| 63 | + |
| 64 | +1. When in the `Smart-HTML-Elements-Core` directory, run `npm install` and then `bower install` to install dependencies. |
| 65 | + |
| 66 | +1. Run a localhost or upload the demo on a web server. Then run: |
| 67 | + |
| 68 | + - /demos/smart-tooltip/smart-tooltip-overview.htm |
| 69 | + |
| 70 | + |
| 71 | +## Following the coding style |
| 72 | + |
| 73 | +We are using [ESLint](http://eslint.org/) for linting JavaScript code. |
| 74 | + |
| 75 | +## Creating a pull request |
| 76 | + |
| 77 | + - Make sure your code is compliant with ESLint |
| 78 | + - [Submit a pull request](https://www.digitalocean.com/community/tutorials/how-to-create-a-pull-request-on-github) with detailed title and description |
| 79 | + - Wait for response from one of our team members |
| 80 | + |
| 81 | + |
| 82 | +## License |
| 83 | + |
| 84 | +Apache License 2.0 |
0 commit comments