Overview
Some flexive components use the Yahoo UI toolkit for client-side widgets (e.g. fx:resultTable). To enable YUI on your page, you have to make the following modifications:
- Set the "yui" flag of fx:includes in the head section of your page:
<fx:includes yui="true"/>
- Add near the end of your page. This initializes all Yahoo widgets and loads the required libraries.
Using YUI directly
YUI Example: a client-side result table
This page renders two tables from a FxSQL result using the fx:resultTable component.
<!DOCTYPE html PUBLIC "- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http:
xmlns:ui="http:
xmlns:h="http:
xmlns:f="http:
xmlns:c="http:
xmlns:fx="http:>
<head>
<fx:includes yui="true"/>
</head>
<body class="yui-skin-sam">
<h:form>
<h4>Thumbnail view</h4>
<fx:resultTable var="thumbnailsTable" value="SELECT @pk, #image/caption" viewType="thumbnails"/>
<h4>List view (default)</h4>
<fx:resultTable var="listTable" value="SELECT *"/>
</h:form>
<fx:yuiSetup/>
</body>
</html>