lz.History is the single instance of the class
lz.HistoryService.
The lz.History service manages interaction with the browser history and back button. Save state as often as you like, and advance the history when a new 'page' of values is required.
<form>
<input type="button" value="0" onclick="lzSetCanvasAttribute('foo', 0)"/>
<input type="button" value="1" onclick="lzSetCanvasAttribute('foo', 1)"/>
</form>
| Name | Type (tag) | Type (js) | Default | Category | |||
|---|---|---|---|---|---|---|---|
isReady
|
read/write | ||||||
|
|||||||
offset
|
Number | readonly | |||||
| The current offset (zero-based) in the history value stack. Listen for the onoffset event to find out when lz.History value changes. | |||||||
persist
|
Boolean | readonly | |||||
| If true, persistence is on. | |||||||
_persistso
|
Object | readonly | |||||
| If set, use this persisted object. | |||||||
ready
|
read/write | ||||||
| true if history system is ready to receive events | |||||||
| Name | Type (tag) | Type (js) | Default | Category |
|---|---|---|---|---|
LzHistory
|
lz.HistoryService | readonly | ||
The history service. Also available as the global
lz.History.
|
||||
Methods
| clear() |
|---|
| next() |
|---|
| prev() |
|---|
| save() |
|---|
| Parameter Name | Type | Description |
|---|---|---|
| who | String | Global id of the scope to be used |
| prop | String | Attribute name to be set |
| val | Value to set the attribute to |
| setPersist() |
|---|
Copyright © 2002-2008 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.