Web ComponentThe latest version of this package is: 0.6.9, Opens in new window
Webcomponent for Help Tooltip
This component is compatible with ESM (ES6 module) and IIFE. See documentation examples below.
To be able to install this component, please refer to the Project Setup documentation.
$ npm i @ids-wc/help-tooltip@0.6.9
Table of Contents
Usage
<ids-help-tooltip
data-text="We need the last know adress to be able to pinpoint migration patterns..."
>
</ids-help-tooltip>
<script src="β¦help-tooltip-webcomponent.iife.js"></script>
Properties
Property | Type | Description | Required |
---|---|---|---|
data-text |
String |
The text to use in Help Tooltip | Yes |
data-title |
String |
The title to use in Help Tooltip | No |
data-standalone |
String /Boolean |
To indicate that it is used alone, not next to text | No |
Events
The webcomponent fires a CustomEvent
for opening and closing of the component.
document.addEventListener('ids:send:help-tooltip', e => { console.log(e); });
Event | Type | Description |
---|---|---|
ids:send:help-tooltip |
CustomEvent |
Event fired on open |
ids:send:help-tooltip |
CustomEvent |
Event fired on close |
The payload of the event looks something like this:
// For opened event
detail: { source: "IDS_HELP_TOOLTIP", type: "HELP_TOOLTIP_OPENED", payload: { id: "<uuid>" } }
// For closed event
detail: { source: "IDS_HELP_TOOLTIP", type: "HELP_TOOLTIP_CLOSED", payload: { id: "<uuid>" } }
Changelog
Change Log
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
0.6.9 (2023-01-11)
Bug Fixes
0.3.7 (2022-03-09)
Miscellaneous chores
- reinstall (fa531f7)
0.3.6 (2022-03-09)
Miscellaneous chores
- reinstall (8482f7f)
0.3.5 (2022-03-08)
Miscellaneous chores
0.3.4 (2021-11-10)
Miscellaneous chores
- Manually testing inclusion of CHANGELOG.md (f91eb76)
0.3.0 (2021-11-10)
Miscellaneous chores
0.2.3 (2021-10-28)
Miscellaneous chores
0.2.0 (2021-10-14)
Documentation Updates
0.1.0 (2021-10-01)
β BREAKING CHANGES
- 𧨠We are now serving IIFE files instead of UMD, for a better dev
experience when including scripts with script-tag
- 𧨠All webcomponent versions has been reset, due to new scope; @ids-wc
β Closes: 467386
Bug Fixes
-
π Add missing terser import (b3edea4)
-
π Rename required file to use IIFE, escape correctly (dff7a27)
-
π Use correct classnames for input-label and wrapper (04172fd)
Documentation Updates
Miscellaneous chores
-
π€ prettier (c4334ab)
-
π€ Remove babel, no longer required (9f6497c)
-
π€ Remove unneeded rc files (fdcac58)
-
π€ Remove unwanted files, demo not needed for these pkgs (8ad75ba)
-
π€ Remove usage of .npmignore, use files-prop instead (8b7c55e)
-
π€ Reset CHANGELOG.md files (bf1ef63)
-
π€ Reset versions for webcomponents, due to new scope (f540b01)
-
π€ Set correct output name (98da4f6)
-
π€ Update prettier rc files (7d0e3c9)
-
π€ Use correct dependencies after renaming of scope (38aba43), closes #467386
-
π€ Use correct names for import (72e77f3)
-
π€ Use iife instead of umd (ae0ebcc)
-
bootstrap (420cc99)
-
initial commit (8d74b20)
-
use correct import path (1fff2cb)