Package Exports
- angular-walkthrough
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (angular-walkthrough) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Walkthrough
This Angular model is inspired in part by ng-walkthrough for AngularJS.
Installation
npm install angular-walkthrough
Requirements
- Angular 4.0.0 and more
- Angular/cdk 2.0.0-beta.12
Usage
Directive Attributes
id
(optional): HTML idfocusElementSelector
(optional): CSS selector for focus a HTML element. If the selector detect more that one, the only the first will be chosen.radius
(optional): apply a “borderRadius” on highlight zone. Ifnumber
the value as change in percent. Ifauto
use the focused element borderRadius. If it's a simplestring
, use it without changes. By defaut, no radius.previousStep
(optional): add a ling to go to the previousng-walkthrough
.nextStep
(optional): add a ling to go to the nextng-walkthrough
.texts
(optional): change texts. It's a overlay ofWalkthroughText
.closeButton
(optional):true
for show the button. By defautfalse
.showArrow
(optional):true
for show the arrow. By defautfalse
.finishStep
(optional):true
for show a link to exit. By defautfalse
.hasBackdrop
(optional):true
for show a dark backdrop around the focus element. By defautfalse
.hasGlow
(optional):true
for show a glow on the focus element. By defautfalse
.contentTemplate
(optional): add ang-template
with your description.
Change texts
It's possible to change add texts. With the texts
directive attribute.
WalkthroughText {
previous = 'Previous';
next = 'Next';
close = 'Close';
}
License
Like Angular, this module is released under the permissive MIT license. Your contributions are always welcome.