summaryrefslogtreecommitdiff
path: root/doc/yelp-xsl
diff options
context:
space:
mode:
authorShaun McCance <shaunm@redhat.com>2018-10-14 15:01:02 -0400
committerShaun McCance <shaunm@redhat.com>2018-10-15 09:54:24 -0400
commit30a542d15625fc76495d4b50d1e896460c22a6cb (patch)
treef0d2f0a754b87230f6d7b45f0fffa4d57258976f /doc/yelp-xsl
parent77e523204fa86fe730734ed7d669cbb9fbbb3feb (diff)
downloadyelp-xsl-30a542d15625fc76495d4b50d1e896460c22a6cb.tar.gz
Added ui-expander-preview style for elements with ui:expanded
Diffstat (limited to 'doc/yelp-xsl')
-rw-r--r--doc/yelp-xsl/C/mal2html-block.page3
-rw-r--r--doc/yelp-xsl/C/mal2html-links.page3
-rw-r--r--doc/yelp-xsl/C/mal2html-list.page3
-rw-r--r--doc/yelp-xsl/C/mal2html-page.page3
-rw-r--r--doc/yelp-xsl/C/mal2html-table.page3
-rw-r--r--doc/yelp-xsl/C/mal2html.links.links.page3
-rw-r--r--doc/yelp-xsl/C/mal2html.links.section.page3
-rw-r--r--doc/yelp-xsl/C/mal2html.links.series.page3
-rw-r--r--doc/yelp-xsl/C/mal2html.section.page3
-rw-r--r--doc/yelp-xsl/C/mal2html.ui.expander.class.page37
-rw-r--r--doc/yelp-xsl/C/mal2html.ui.expander.data.page13
11 files changed, 71 insertions, 6 deletions
diff --git a/doc/yelp-xsl/C/mal2html-block.page b/doc/yelp-xsl/C/mal2html-block.page
index 5deee9a4..e9536259 100644
--- a/doc/yelp-xsl/C/mal2html-block.page
+++ b/doc/yelp-xsl/C/mal2html-block.page
@@ -62,6 +62,9 @@
<p><link xref="mal.if.test"/></p>
</item>
<item>
+ <p><link xref="mal2html.ui.expander.class"/></p>
+ </item>
+ <item>
<p><link xref="mal2html.ui.expander.data"/></p>
</item>
<item>
diff --git a/doc/yelp-xsl/C/mal2html-links.page b/doc/yelp-xsl/C/mal2html-links.page
index 1ded43a0..7b6772be 100644
--- a/doc/yelp-xsl/C/mal2html-links.page
+++ b/doc/yelp-xsl/C/mal2html-links.page
@@ -69,6 +69,9 @@
<p><link xref="mal2html.editor.badge"/></p>
</item>
<item>
+ <p><link xref="mal2html.ui.expander.class"/></p>
+ </item>
+ <item>
<p><link xref="mal2html.ui.expander.data"/></p>
</item>
<item>
diff --git a/doc/yelp-xsl/C/mal2html-list.page b/doc/yelp-xsl/C/mal2html-list.page
index b5bf5c4e..24b60572 100644
--- a/doc/yelp-xsl/C/mal2html-list.page
+++ b/doc/yelp-xsl/C/mal2html-list.page
@@ -42,6 +42,9 @@
<p><link xref="mal.if.test"/></p>
</item>
<item>
+ <p><link xref="mal2html.ui.expander.class"/></p>
+ </item>
+ <item>
<p><link xref="mal2html.ui.expander.data"/></p>
</item>
</list>
diff --git a/doc/yelp-xsl/C/mal2html-page.page b/doc/yelp-xsl/C/mal2html-page.page
index 50a816db..e6db9923 100644
--- a/doc/yelp-xsl/C/mal2html-page.page
+++ b/doc/yelp-xsl/C/mal2html-page.page
@@ -147,6 +147,9 @@
<p><link xref="mal2html.links.topic"/></p>
</item>
<item>
+ <p><link xref="mal2html.ui.expander.class"/></p>
+ </item>
+ <item>
<p><link xref="mal2html.ui.expander.data"/></p>
</item>
</list>
diff --git a/doc/yelp-xsl/C/mal2html-table.page b/doc/yelp-xsl/C/mal2html-table.page
index e39435ac..8916e633 100644
--- a/doc/yelp-xsl/C/mal2html-table.page
+++ b/doc/yelp-xsl/C/mal2html-table.page
@@ -35,6 +35,9 @@
<p><link xref="mal.if.test"/></p>
</item>
<item>
+ <p><link xref="mal2html.ui.expander.class"/></p>
+ </item>
+ <item>
<p><link xref="mal2html.ui.expander.data"/></p>
</item>
<item>
diff --git a/doc/yelp-xsl/C/mal2html.links.links.page b/doc/yelp-xsl/C/mal2html.links.links.page
index fece0e71..bb36ccf6 100644
--- a/doc/yelp-xsl/C/mal2html.links.links.page
+++ b/doc/yelp-xsl/C/mal2html.links.links.page
@@ -63,6 +63,9 @@
<p><link xref="mal2html.links.ul"/></p>
</item>
<item>
+ <p><link xref="mal2html.ui.expander.class"/></p>
+ </item>
+ <item>
<p><link xref="mal2html.ui.expander.data"/></p>
</item>
<item>
diff --git a/doc/yelp-xsl/C/mal2html.links.section.page b/doc/yelp-xsl/C/mal2html.links.section.page
index 56c43a2b..4bda5b9e 100644
--- a/doc/yelp-xsl/C/mal2html.links.section.page
+++ b/doc/yelp-xsl/C/mal2html.links.section.page
@@ -31,6 +31,9 @@
<list style="compact">
<title>Calls Templates</title>
<item>
+ <p><link xref="mal2html.ui.expander.class"/></p>
+ </item>
+ <item>
<p><link xref="mal2html.ui.expander.data"/></p>
</item>
</list>
diff --git a/doc/yelp-xsl/C/mal2html.links.series.page b/doc/yelp-xsl/C/mal2html.links.series.page
index d5c333ac..15d094ba 100644
--- a/doc/yelp-xsl/C/mal2html.links.series.page
+++ b/doc/yelp-xsl/C/mal2html.links.series.page
@@ -39,6 +39,9 @@
<p><link xref="mal2html.links.series.prev"/></p>
</item>
<item>
+ <p><link xref="mal2html.ui.expander.class"/></p>
+ </item>
+ <item>
<p><link xref="mal2html.ui.expander.data"/></p>
</item>
</list>
diff --git a/doc/yelp-xsl/C/mal2html.section.page b/doc/yelp-xsl/C/mal2html.section.page
index 242887f4..ebfd19c2 100644
--- a/doc/yelp-xsl/C/mal2html.section.page
+++ b/doc/yelp-xsl/C/mal2html.section.page
@@ -72,6 +72,9 @@
<p><link xref="html.class.attr"/></p>
</item>
<item>
+ <p><link xref="mal2html.ui.expander.class"/></p>
+ </item>
+ <item>
<p><link xref="mal2html.ui.expander.data"/></p>
</item>
</list>
diff --git a/doc/yelp-xsl/C/mal2html.ui.expander.class.page b/doc/yelp-xsl/C/mal2html.ui.expander.class.page
new file mode 100644
index 00000000..35f6f6d7
--- /dev/null
+++ b/doc/yelp-xsl/C/mal2html.ui.expander.class.page
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" style="xslt-template" id="mal2html.ui.expander.class">
+ <info>
+ <link type="guide" xref="mal2html-ui" group="templates"/>
+ <link type="guide" xref="templates" group="mal2html"/>
+ <desc>Output HTML class value for an expander.</desc>
+ <revision version="3.32" date="2018-10-14" status="final"/>
+ </info>
+ <title>mal2html.ui.expander.class</title>
+ <synopsis>
+ <title>Parameters</title>
+ <terms>
+ <item>
+ <title><code>$node</code></title>
+ <p>The source element to output data for.</p>
+ </item>
+ <item>
+ <title><code>$hastitle</code></title>
+ <p>True if <code>$node</code> has a title or a title can be automatically computed.</p>
+ </item>
+ </terms>
+ </synopsis>
+ <p>This template outputs HTML class attribute values for elements that can be
+ expanded and collapsed. It outputs the string <sys>ui-expander</sys> only if <code>$node</code> has
+ a <sys>ui:expanded</sys> attribute and <code>$hastitle</code> is true. By default, <code>$hastitle</code> is true
+ if <code>$node</code> has a <sys>title</sys> element. Set <code>$hastitle</code> explicitly when calling this
+ template on elements that have an automatic default title.</p>
+ <p>This template also outputs <sys>ui-expander-preview</sys> if <code>$node</code> is an expander and
+ it has the style hint <sys>ui-expander-preview</sys>. This is an alternative style
+ that shows a scaled down preview of collapsed content.</p>
+ <list style="compact">
+ <title>Calls Parameters</title>
+ <item>
+ <p><link xref="mal.cache"/></p>
+ </item>
+ </list>
+</page>
diff --git a/doc/yelp-xsl/C/mal2html.ui.expander.data.page b/doc/yelp-xsl/C/mal2html.ui.expander.data.page
index 006f12fc..b8aa0965 100644
--- a/doc/yelp-xsl/C/mal2html.ui.expander.data.page
+++ b/doc/yelp-xsl/C/mal2html.ui.expander.data.page
@@ -4,7 +4,7 @@
<link type="guide" xref="mal2html-ui" group="templates"/>
<link type="guide" xref="templates" group="mal2html"/>
<desc>Output data for an expander.</desc>
- <revision version="3.4" date="2012-02-25" status="final"/>
+ <revision version="3.32" date="2018-10-14" status="final"/>
</info>
<title>mal2html.ui.expander.data</title>
<synopsis>
@@ -15,8 +15,8 @@
<p>The source element to output data for.</p>
</item>
<item>
- <title><code>$expander</code></title>
- <p>Whether <code>$node</code> is actually an expander.</p>
+ <title><code>$hastitle</code></title>
+ <p>True if <code>$node</code> has a title or a title can be automatically computed.</p>
</item>
</terms>
</synopsis>
@@ -25,9 +25,10 @@
the CSS. The div contains information about text directionality, the default
expanded state, and optionally additional titles for the expanded and collapsed
states.</p>
- <p>The expander information is only output if the <code>$expander</code> parameter is <sys>true</sys>.
- This parameter can be calculated automatically, but it will give false negatives
- for blocks that produce automatic titles.</p>
+ <p>The expander information is only output if <code>$node</code> has a <sys>ui:expanded</sys> attribute
+ and <code>$hastitle</code> is true. By default, <code>$hastitle</code> is true if <code>$node</code> has a <sys>title</sys>
+ element. Set <code>$hastitle</code> explicitly when calling this template on elements that
+ have an automatic default title.</p>
<list style="compact">
<title>Calls Parameters</title>
<item>