Sclass"

From Documentation
m
m
Line 1: Line 1:
 +
{{ZKStyleGuidePageHeader}}
 +
 
The purpose of the Sclass is to lightly change the CSS of the component.
 
The purpose of the Sclass is to lightly change the CSS of the component.
  
Line 14: Line 16:
 
</source>
 
</source>
 
As you can see, the above example has two Textbox, one has the Sclass property, and the other has no the Sclass property. Most of the time we need to customize a style with a special field without influencing others, we can specify the Sclass property instead.
 
As you can see, the above example has two Textbox, one has the Sclass property, and the other has no the Sclass property. Most of the time we need to customize a style with a special field without influencing others, we can specify the Sclass property instead.
 +
 +
{{ZKStyleGuidePageFooter}}

Revision as of 01:35, 8 September 2010


The purpose of the Sclass is to lightly change the CSS of the component.

For example,

<zk>
<style dynamic="true">
.mydb {
border: 1px solid blue;
}
</style>
<textbox sclass="mydb" value="having Sclass"/>
<textbox value="Without Sclass"/>
</zk>

As you can see, the above example has two Textbox, one has the Sclass property, and the other has no the Sclass property. Most of the time we need to customize a style with a special field without influencing others, we can specify the Sclass property instead.



Last Update : 2010/09/08

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