pip-webui
Version:
HTML5 UI for LOB applications
120 lines (83 loc) • 4.45 kB
Markdown
and bugs](
Add dependency to **pip-webui** into your **bower.json** or **package.json** file depending what you use.
```javascript
"dependencies": {
...
"pip-webui": "*"
...
}
```
Alternatively you can install **pip-webui** manually using **bower**:
```bash
bower install pip-webui
```
or install it using **npm**:
```bash
npm install pip-webui
```
Include **pip-webui** files into your web application.
```html
<link rel="stylesheet" href=".../pip-webui-lib.min.css"/>
<link rel="stylesheet" href=".../pip-webui.min.css"/>
...
<script src=".../pip-webui-lib.min.js"></script>
<script src=".../pip-webui.min.js"></script>
```
Register **pipSupport** module in angular module dependencies.
```javascript
angular.module('myApp',[..., 'pipSupport']);
```
**pipAnalytics** allows to track user interactions with application and send them to Google Analytics for further analysis.
Page transitions are tracked automatically when service is enabled in the application. To track various events, such as
clicking a button or scrolling page, developers shall explicitely call **event** method.
Todo: Add code snippet to demonstrate how to enable the service and track events
* **enable(trackingId: string): void** - enables tracking interactions and reporting them to Google Analytics using provided tracking id
- Params:
+ trackingId - tracking id obtained in Google Analytics (Todo: add a link how to get the id)
* **pageView(url: string, user: string, language: string): void** - manually tracks page transition event
- Params:
+ url: string - page url
+ user: string - name of the current user
+ language: string - selected language
* **event(category: string, action: string, value: any, user: string, language: string): void** - tracks events in the user interface such as clicks, scrolls, etc.
- Params:
+ category - category of events
+ action - name of event or action
+ value - value associated with the event
+ user: string - name of the current user
+ language: string - selected language
## <a name="feedback_panel"></a> pip-feedback panel
**Feedback** panel that collects feedback from application users and sends them to product support team. The panel is implemented as a directive that allows to embed feedback functionality into a custom view like support tab on the heal page.
The panel requires several standard REST API operations to be implemented on the server: **users**, **files** and **feedbacks**.
Todo: Add a link to pip-webui-rest page here with the protocol description
Todo: Add HTML snippet that demonstrates the directive with all attributes
Todo: Add description of directive attributes
**Feedback** page provides a fully implemented user feedback functionality that can be included into web application. Navigation to the page can be done via **feedback** state or **/
The page requires several standard REST API operations to be implemented on the server: **users**, **files** and **feedbacks**.
Todo: Add a link to pip-webui-rest page here with the protocol description
Todo: Add image that demonstrates the page
**pipFeedbackDialog** allows to open **Feedback** as a dialog anywhere in web application.
The page requires several standard REST API operations to be implemented on the server: **users**, **files** and **feedbacks**.
Todo: Add code snippet that demonstrates openning the dialog
Todo: Add description of pipFeedbackDialog methods
If you have any questions regarding the module, you can ask them using our
[ ](https://groups.google.com/forum/#!forum/pip-webui).
Bugs related to this module can be reported using [github issues](https://github.com/pip-webui/pip-webui-support/issues).
- [Installing](
- [pipAnalytics service](
- [pip-feedback panel](
- [Feedback page](
- [pipFeedbackDialog](
- [Questions