Borderlayout"

From Documentation
(Created page with "{{ZKStyleCustomizationGuidePageHeader}} = Component Reference = Component Reference: Borderlayout, [[ZK_Component_Reference/La...")
 
(No difference)

Revision as of 09:55, 7 November 2013


Component Reference

Component Reference: Borderlayout, North, South, Center, West, East

DOM Structure

<div class="z-borderlayout">
    <!-- North -->
    <div>
        <div class="z-north">
            <div class="z-north-header">
                <i class="z-borderlayout-icon z-icon-chevron-up"></i>
            </div>
            <div class="z-north-body"></div>
        </div>
        <div class="z-north-splitter">
            <span class="z-north-splitter-button">
                <i class="z-north-icon z-icon-ellipsis-horizontal"></i>
                <i class="z-north-icon z-icon-caret-up"></i>
                <i class="z-north-icon z-icon-ellipsis-horizontal"></i>
            </span>
        </div>
        <div class="z-north-collapsed">
            <i class="z-borderlayout-icon z-icon-chevron-down"></i>
        </div>
    </div>
    <!-- South (same as North) -->
    <!-- East (same as North) -->
    <!-- West (same as North) -->
    <!-- Center -->
    <div>
        <div class="z-center">
            <div class="z-center-header"></div>
            <div class="z-center-body"></div>
        </div>
    </div>
</div>

LESS Source

Basically, LESS source is correspond to it's DOM structure, then North, South, East and West have different style.

/* borderlayout and it's icon */
.z-borderlayout {
    &-icon {}
}
/* North, South, East, West and Center style */
.z-north,
.z-south,
.z-west,
.z-east,
.z-center {
    &-header {}
    &-body {}
}
.z-north,
.z-south,
.z-west,
.z-east {
    &-collapsed {}
    &-splitter {}
    &-icon {}
}

Check complete LESS source for Borderlayout from Github.

LESS Variables

The following LESS variables are used for Splitter between North, South, East and West components. Check other variables from Github.

Variables Default Value
@splitterGradientStart #FDFDFD
@splitterGradientEnd #F1F1F1

Customize Sample

Check the instruction for customization step, and if we change the LESS variables in borderlayout.less as follows:

@import "~./zul/less/_header.less";

@baseBorderColor: #006400;
@baseBarHeight: 40px;
@baseButtonHeight: 32px;
@baseGradientStart: #F8FFE8;
@baseGradientEnd: #B7DF2D;
@splitterGradientStart: #F8FFE8;
@splitterGradientEnd: #B7DF2D;

.z-borderlayout {
    /* omitted */
}

The look and feel of Borderlayout component looks like the image below:

Styleguide-borderlayout.png


Version History

Last Update : 2013/11/07


Version Date Content
     



Last Update : 2013/11/07

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