blob: 005a3c1f2faaa89cb7adbe3ec0a19838881646b9 [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>Links can be grouped with the <code class="language-markup">&lt;tc:links/></code> tag.
Just add some <code class="language-markup">&lt;tc:link/></code> or
<code class="language-markup">&lt;tc:links/></code> tags.</p>
<p>Currently there is no difference between <code class="language-markup">&lt;tc:link/></code> and
<code class="language-markup">&lt;tc:links/></code>.</p>
<tc:link label="Tag Library Documentation" image="#{request.contextPath}/image/feather-leaf.png"
link="#{apiController.tldBase}/#{apiController.currentRelease}/tld/tc/buttons.html"/>
<p>Tag Library Documentation:
<tc:link label="&lt;tc:links/>" image="#{request.contextPath}/image/feather-leaf.png" link="#{apiController.tldBase}/#{apiController.currentRelease}/tld/tc/links.html"/>
|
<tc:link label="&lt;tc:link/>" image="#{request.contextPath}/image/feather-leaf.png" link="#{apiController.tldBase}/#{apiController.currentRelease}/tld/tc/link.html"/></p>
<tc:section label="Basics">
<p>A simple example with three links.</p>
<demo-highlight language="markup">&lt;tc:links>
&lt;tc:link label="Left"/>
&lt;tc:link label="Center"/>
&lt;tc:link label="Right"/>
&lt;/tc:links></demo-highlight>
<tc:links>
<tc:link label="Left"/>
<tc:link label="Center"/>
<tc:link label="Right"/>
</tc:links>
</tc:section>
<tc:section label="Dropdown Button">
<p>A dropdown menu can also be created.</p>
<demo-highlight language="markup">&lt;tc:links>
&lt;tc:link label="Dropdown" omit="true">
&lt;tc:link label="Action 1"/>
...
&lt;/tc:link>
&lt;tc:link label="Center"/>
&lt;tc:link label="Right"/>
&lt;/tc:links></demo-highlight>
<tc:links>
<tc:link label="Dropdown" omit="true">
<tc:link label="Action 1"/>
<tc:link label="Action 2"/>
<tc:link label="Action 3"/>
<tc:link label="Submenu">
<tc:link label="Action 1"/>
<tc:link label="Action 2"/>
<tc:link label="Action 3"/>
</tc:link>
</tc:link>
<tc:link label="Center"/>
<tc:link label="Right"/>
</tc:links>
</tc:section>
<tc:section label="Vertical">
<p>Vertical link group.</p>
<demo-highlight language="markup">&lt;tc:links orientation="vertical">
&lt;tc:link label="Left"/>
&lt;tc:link label="Center"/>
&lt;tc:link label="Right"/>
&lt;/tc:links></demo-highlight>
<tc:links orientation="vertical">
<tc:link label="Left"/>
<tc:link label="Center"/>
<tc:link label="Right"/>
</tc:links>
</tc:section>
<tc:section label="Disable">
<p>This example shows how to disable all links in a link group.
It's also possible to set disable to false e.g. for one link.</p>
<demo-highlight language="markup">&lt;tc:links disabled="true">
&lt;c:link label="Left" disabled="false"/>
&lt;tc:link label="Center"/>
&lt;tc:link label="Right"/>
&lt;/tc:links></demo-highlight>
<tc:links disabled="true">
<tc:link label="Left" disabled="false"/>
<tc:link label="Center"/>
<tc:link label="Right"/>
</tc:links>
</tc:section>
</ui:composition>