blob: f995efecc5c897addd306281618d74709532cdd5 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
-->
<ui:composition template="/main.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:tc="http://myfaces.apache.org/tobago/component"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<p>A separator can be added with <code class="language-markup">&lt;tc:separator/></code></p>
<tc:section label="Separator with label">
<demo-highlight language="markup">&lt;tc:separator label="Separator with label"/></demo-highlight>
<tc:in id="i1" label="Text 1"/>
<tc:separator label="Separator with label"/>
<tc:in id="i2" label="Text 2"/>
</tc:section>
<tc:section label="Separator without label">
<demo-highlight language="markup">&lt;tc:separator/></demo-highlight>
<tc:in id="i3" label="Text 1"/>
<tc:separator/>
<tc:in id="i4" label="Text 2"/>
</tc:section>
<tc:section label="Separator in dropdown menu">
<p>Just put a <code class="language-markup">&lt;tc:separator/></code> tag between dropdown menu entries.</p>
<p>The <code>label</code> attribute has no effect.</p>
<tc:button label="Dropdown" omit="true">
<tc:link label="Entry One" omit="true"/>
<tc:separator/>
<tc:link label="Entry Two" omit="true"/>
</tc:button>
</tc:section>
</ui:composition>