1.0.0-beta.3 • Published 6 years ago

pip-webui2-buttons-temp v1.0.0-beta.3

Weekly downloads
18
License
-
Repository
github
Last release
6 years ago

Buttons

npm.io

Pip.WebUI.Buttons provides a selection of button controls: toggle buttons, action buttons, drilldown lists, etc.

Action list

Is a set of big action buttons that are placed at the bottom of a page

Using

Example with using angular-material components: mat-button and mat-icon.

<pip-action-list>
    <button mat-button class="pip-action-list-item">
        <mat-icon>home</mat-icon>
        <span class="pip-title">Home</span>
    </button>
</pip-action-list>

Example on the image

Drilldown list

Is a list with clickable items, that lead to detail information

Using

Example with using angular-material components: mat-button and mat-icon.

<pip-drilldown-list>
  <button mat-button class="pip-drilldown-list-item pip-selected" >
        <div class="pip-content">
            <mat-icon class="pip-icon">chat_bubble</mat-icon>
            <p class="pip-title">Chat</p>
            <mat-icon>chevron_right</mat-icon>
        </div>
    </button>
  <button mat-button class="pip-drilldown-list-item pip-drilldown-list-item-lg">
        <div class="pip-content">
            <mat-icon class="pip-icon">mail</mat-icon>
            <div class="pip-subcontent">
                <p class="pip-title">Mails</p>
                <p class="pip-subtitle">Inbox: 23</p>
            </div>
            <mat-icon>chevron_right</mat-icon>
        </div>
    </button>
</pip-drilldown-list>

Example on the image

Toggle buttons

Control implement multiple radio buttons. Only one of them can be pressed at any time. On phones buttons are replaced with dropdown list

Using

Example with using angular-material components: mat-button-toggle-group and mat-button-toggle. Add pip-button-toggle-group class to restyle angular-material toggle buttons.

<mat-button-toggle-group class="pip-button-toggle-group">
  <mat-button-toggle fxFlex="fill" value="goal" style="text-align: center">
    <!--mat-icon>format_align_left</mat-icon-->
    Goal
  </mat-button-toggle>
  <mat-button-toggle fxFlex="fill" value="dream" style="text-align: center">
    <!--mat-icon>format_align_center</mat-icon-->
    Dream
  </mat-button-toggle>
  <mat-button-toggle fxFlex="fill" value="task" style="text-align: center">
    <!--mat-icon>format_align_right</mat-icon-->
    Task
  </mat-button-toggle>
  <mat-button-toggle fxFlex="fill" value="area" disabled style="text-align: center">
    <!--mat-icon>format_align_justify</mat-icon-->
    Area
  </mat-button-toggle>
</mat-button-toggle-group>

Example on the image

Installation

To install this module using npm:

npm install pip-webui2-buttons --save

License

This module is released under MIT license and totally free for commercial and non-commercial use.

1.0.0-beta.3

6 years ago

1.0.0-beta.2

6 years ago

1.0.0-beta.1

6 years ago

0.0.2

6 years ago