0.0.24 • Published 2 years ago
trakiframe v0.0.24
Trak Iframe
About The Project
Trak Iframe focusing to embeded authorised way of showing websites inside a Iframe.
Getting Started
Trak Iframe
Installation
_Below is an example of how we can add trak iframe into your project.
- Install Trak Iframe Package
Using Npm
npm install trakiframe
Using Yarn
yarn add trakiframe
- Import Trak Iframe
orconst TrakComponent = require('trakiframe');
import * as Trak from 'trakiframe';
- Initialize Trak Iframe with Token
using
init
method
usingTrakComponent.init({ token: 'Token', })
init
method with publickey and token
or usingTrakComponent.init({ token: 'Token', publicKey: <---key----> })
init
method encrypting using package functionTrakComponent.init({ token: TrakComponent.encrypt(token), })
- Load iframe using
show
method eg: button ClickTrakComponent.show({...});
const mountComponent = () => { TrakComponent.show({ 'physiotherapist_name': 'fer', 'patient_name': 'qqqq', 'component': 'metrics', }) }
<button onClick={mountComponent}>Click</button>
- Remove iframe
using
remove
methodTrakComponent.remove();
In Angular style fix
Import styles from package to app
1.in Angular.json file projects -> demo -> architect -> build -> options -> styles
add
```json
"./node_modules/trakiframe/trakStyle.css"
```
License
Distributed under the MIT License. See LICENSE.txt
for more information.
0.0.20
2 years ago
0.0.21
2 years ago
0.0.22
2 years ago
0.0.23
2 years ago
0.0.24
2 years ago
0.0.16
2 years ago
0.0.17
2 years ago
0.0.18
2 years ago
0.0.19
2 years ago
0.0.13
2 years ago
0.0.14
2 years ago
0.0.15
2 years ago
0.0.11
3 years ago
0.0.12
3 years ago
0.0.10
3 years ago
0.0.7
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago