MultiView Module Name: MultiViewModule

Module Name: MultiViewModule

The MultiView widget contains several views and allows an end user to switch between them. In this demo, all views are defined using a custom template. You can navigate through the views by swiping them in the horizontal direction.

Showcase

First View

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

Second View

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

Third View

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

<tl-radio-group [name]="'radio'" [(ngModel)]="radio" [orientation]="'horizontal'">
  <tl-radiobutton [label]="'View 1'" [value]="'1'"></tl-radiobutton>
  <tl-radiobutton [label]="'View 2'" [value]="'2'"></tl-radiobutton>
  <tl-radiobutton [label]="'View 3'" [value]="'3'"></tl-radiobutton>
</tl-radio-group>

<div class="multiview-box">
  <tl-multiview [modelValue]="radio" (selectedChange)="radio = $event">

    <tl-view [value]="'1'">
      <div style="padding: 10px">
        <div class="row">
          <div class="col-md-12">
            <h1>First View</h1>
            <p>Content</p>
          </div>
        </div>
      </div>
    </tl-view>

    <tl-view [value]="'2'">
      <div style="padding: 10px">
        <div class="row">
          <div class="col-md-12">
            <h1>Second View</h1>
            <p>Content</p>
          </div>
        </div>
      </div>
    </tl-view>

    <tl-view [value]="'3'">
      <div style="padding: 10px">
        <div class="row">
          <div class="col-md-12">
            <h1>Third View</h1>
            <p>Content</p>
          </div>
        </div>
      </div>
    </tl-view>

  </tl-multiview>
</div>
Properties
NameTypeDefaultDescriptionOptions
modelValueanynullAny value to be compared with view [value] property, can be used with a bindable property. any text
transitionTimestring300msTime of transition between views. s | ms
valuestringnullRequired property to define the value of view. any text
Events
NameParametersDescription
selectedChange
modelValue : Value of [modelValue] property selected
Returns the value of [modelValue] property when it changes