Step"

From Documentation
(Created page with "{{ZKComponentReferencePageHeader}} = Step = *Demonstration: *Java API: [http://www.zkoss.org/javadoc/latest/zk/org/zkoss/zkmax/zul/Step.html Step] *JavaScript API: [http://ww...")
 
m ((via JWB))
 
(12 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
= Step =
 
= Step =
  
*Demonstration:
+
*Demonstration: [https://www.zkoss.org/zkdemo/menu/stepbar| Step]
*Java API: [http://www.zkoss.org/javadoc/latest/zk/org/zkoss/zkmax/zul/Step.html Step]
+
*Java API: <javadoc>org.zkoss.zkmax.zul.Step</javadoc>
*JavaScript API: [http://www.zkoss.org/javadoc/latest/jsdoc/zkmax/wgt/Step.html Step]
+
*JavaScript API: <javadoc directory="jsdoc">zkmax.wgt.Step</javadoc>
*{{ZK EE}}
+
{{ZK EE}}
 +
{{versionSince | 9.0.0}}
  
 
= Employment/Purpose =
 
= Employment/Purpose =
Step is a navigation state for Stepbar
+
A step is used for displaying user navigation, it should be placed inside a Stepbar and shouldn't be used without a Stepbar.
  
 
= Example =
 
= Example =
  
<source lang="xml" >
+
[[File:Stepbar-example.png]]
<zk xmlns:ca="client/attribute">
+
 
  <stepbar linear="false" activeIndex="2">
+
<source lang="xml">
 +
<zk>
 +
    <stepbar linear="false" activeIndex="2" width="600px">
 
         <step title="First Step" iconSclass="z-icon-home"/>
 
         <step title="First Step" iconSclass="z-icon-home"/>
 
         <step title="Second Step" complete="true" />
 
         <step title="Second Step" complete="true" />
Line 24: Line 27:
  
 
= Properties =
 
= Properties =
 +
 +
== Complete ==
 +
Whether this step is completed.
 +
(Default: false)
 +
 +
The default visual style:
 +
[[File:Step-complete-default.png]]
 +
 +
== Error ==
 +
Whether this step is in error.
 +
(Default: false)
 +
 +
The default visual style:
 +
[[File:Step-error-default.png]]
 +
 +
The priority of <code>error</code> is higher than <code>complete</code>. If both properties are set, the result will be an error state visually.
  
 
== IconSclass ==
 
== IconSclass ==
Set the icon sclass to change the icon of step.
+
Set the icon CSS class to apply a custom icon.
  
== Completed, Error ==
+
If you set this property, it will override the complete and error icons accordingly.
Set the state of the step.
+
 
(Default: false)
+
[[File:Step-iconsclass.png |center ]]
 +
<source lang="xml">
 +
    <stepbar width="800px">
 +
        <step title="Custom Step icon" iconSclass="z-icon-star-o"/>
 +
        <step title="Custom Error" error="true" iconSclass="z-icon-bug"/>
 +
        <step title="Custom Complete" iconSclass="z-icon-home"/>
 +
    </stepbar>
 +
</source>
 +
 
 +
Please read [[ZK_Component_Reference/Base_Components/LabelImageElement#IconSclass]] to know more available build-in icons.
  
 
== Title ==
 
== Title ==
Set the title of the step.
+
Set the title (label) of each step.
 
(Default: empty)
 
(Default: empty)
  
 
= Supported Events =
 
= Supported Events =
 +
{| class='wikitable' | width="100%"
 +
! <center>Name</center>
 +
! <center>Event Type</center>
 +
|-
 +
| none
 +
|
 +
none
  
*Inherited Supported Events: [[ZK_Component_Reference/Base_Components/LabelImageElement#Supported_Events | LabelImageElement]]
+
|}
 +
*Inherited Supported Events: [[ZK_Component_Reference/Base_Components/XulElement#Supported_Events | XulElement]]
  
 
= Supported Children =
 
= Supported Children =
Line 46: Line 82:
 
= Use Cases =
 
= Use Cases =
  
{| border='1px' | width="100%"
+
{| class='wikitable' | width="100%"
 
! Version !! Description !! Example Location
 
! Version !! Description !! Example Location
 
|-
 
|-
Line 57: Line 93:
  
 
{{LastUpdated}}
 
{{LastUpdated}}
{| border='1px' | width="100%"
+
{| class='wikitable' | width="100%"
 
! Version !! Date !! Content
 
! Version !! Date !! Content
 
|-
 
|-
 
| 9.0.0
 
| 9.0.0
 
| November, 2019
 
| November, 2019
| [http://www.zkoss.org/javadoc/latest/zk/org/zkoss/zkmax/zul/Step.html Step] was introduced.
+
| [https://tracker.zkoss.org/browse/ZK-4375 ZK-4375]: Provide a stepbar component
 
|}
 
|}
  
 
{{ZKComponentReferencePageFooter}}
 
{{ZKComponentReferencePageFooter}}

Latest revision as of 13:14, 7 January 2022

Step

  • Available for ZK:
  • http://www.zkoss.org/product/zkhttp://www.zkoss.org/whyzk/zkeeVersion ee.png

Since 9.0.0

Employment/Purpose

A step is used for displaying user navigation, it should be placed inside a Stepbar and shouldn't be used without a Stepbar.

Example

Stepbar-example.png

<zk>
    <stepbar linear="false" activeIndex="2" width="600px">
        <step title="First Step" iconSclass="z-icon-home"/>
        <step title="Second Step" complete="true" />
        <step title="Third Step" error="true" />
    </stepbar>
</zk>

Properties

Complete

Whether this step is completed. (Default: false)

The default visual style: Step-complete-default.png

Error

Whether this step is in error. (Default: false)

The default visual style: Step-error-default.png

The priority of error is higher than complete. If both properties are set, the result will be an error state visually.

IconSclass

Set the icon CSS class to apply a custom icon.

If you set this property, it will override the complete and error icons accordingly.

Step-iconsclass.png
    <stepbar width="800px">
        <step title="Custom Step icon" iconSclass="z-icon-star-o"/>
        <step title="Custom Error" error="true" iconSclass="z-icon-bug"/>
        <step title="Custom Complete" iconSclass="z-icon-home"/>
    </stepbar>

Please read ZK_Component_Reference/Base_Components/LabelImageElement#IconSclass to know more available build-in icons.

Title

Set the title (label) of each step. (Default: empty)

Supported Events

Name
Event Type
none

none

Supported Children

* None

Use Cases

Version Description Example Location
     

Version History

Last Update : 2022/01/07


Version Date Content
9.0.0 November, 2019 ZK-4375: Provide a stepbar component



Last Update : 2022/01/07

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.