An open API service indexing awesome lists of open source software.

https://github.com/quickcorp/qcobjects-view-stack-tutorial


https://github.com/quickcorp/qcobjects-view-stack-tutorial

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# Tutorial: A View Stack Using QCObjects

## Step 1:

Create three files: view-stack.html. one.html, two.html

## Step 2:

Iside the file index.html include the following tag in the head section:

```html

```

## Step 3:

In the body section, add the following:

```html

This is a view stack example


There are 3 files, view-stack.html , one.html and two.html


This part of the page (index.html) does not change when you click in a link


Open DevTools in your browser (second mouse button, click on Inspect Elements) and see what happens with the elements of this page when you click a link




```

## Step 4:

Give some style to your component

```html

component[name=view-stack]{
border: 1px solid black;
width: 200px;
height: 200px;
position: relative;
display: block;
padding: 0;
}

```

## The complete code looks like this

```html

component[name=view-stack]{
border: 1px solid black;
width: 200px;
height: 200px;
position: relative;
display: block;
padding: 0;
}

This is a view stack example


There are 3 files, view-stack.html , one.html and two.html


This part of the page (index.html) does not change when you click in a link


Open DevTools in your browser (second mouse button, click on Inspect Elements) and see what happens with the elements of this page when you click a link

```

See the file [index.html](https://quickcorp.github.io/qcobjects-view-stack-tutorial/index.html) for a complete example