Difference between revisions of "Page Indicator"

From ImpVis Wiki
Jump to navigation Jump to search
(Created page with "The button component is just a simple button which is designed to fit the ImpVis Theme and emit events which are easy to use. File:Button.png|thumb|The iv-button component w...")
 
(Initial Page)
Line 1: Line 1:
The button component is just a simple button which is designed to fit the ImpVis Theme and emit events which are easy to use.
[[File:PageIndicator.png|thumb|The iv-page-indicator component with the first page active and five pages in the collection.]]
[[File:Button.png|thumb|The iv-button component when active.]]
The page indicator component is designed to display the page number in the top left of the page for collections of visualisations.
 
==Technical information==  
==Technical information==  
The <code>iv-button</code> if for use as a simple button, e.g. "play/pause"/"reset" etc. To add text, simply write it in the iv-button slot (between the starting and closing HTML tags).
The <code>iv-page-indicator</code> is not designed for general use. Instead it should automatically appear when a collection is created on the website.


===Props===
===Props===


====== disabled ======
none
Type: Boolean
 
Required: false
 
Default: false
 
Description: When true the button is greyed out.
[[File:ButtonDisabled.png|thumb|The iv-button component when the disabled prop is set to true.]]
 
=== Events ===
=== Events ===


====== mouseover ======
none<div class="res-img">
Trigger: mouseover
 
Description: Simple event carrying mouse event information, emitted when mouse cursor moves over button.
 
====== mouseleave ======
Trigger: mouseleave
 
Description: Simple event carrying mouse event information, emitted when mouse cursor leaves button.
 
====== click ======
Trigger: click
 
Description: Simple event carrying mouse event information, emitted when mouse button pressed over button.<div class="res-img">


</div>
</div>


==Design Choices==
==Design Choices==
The green button is chosen to stand out against the general ImpVis blue. The lighter green upon cursor hovering gives the impression of active to tell the user the cursor is hovering over this option.
The colour is designed to fit with the general ImpVis blue. There is no highlighting on hover; this could be added in future.


[[Category:ImpVis_Components]] [[Category:Layouts]]
[[Category:ImpVis_Components]] [[Category:Layouts]]

Revision as of 10:13, 30 June 2021

The iv-page-indicator component with the first page active and five pages in the collection.

The page indicator component is designed to display the page number in the top left of the page for collections of visualisations.

Technical information

The iv-page-indicator is not designed for general use. Instead it should automatically appear when a collection is created on the website.

Props

none

Events

none

Design Choices

The colour is designed to fit with the general ImpVis blue. There is no highlighting on hover; this could be added in future.