Skip to content

Instantly share code, notes, and snippets.

View caridy's full-sized avatar

Caridy Patiño caridy

  • Salesforce, Inc.
  • Miami, FL.
  • X @caridy
View GitHub Profile
<!doctype html>
<html>
<head><title>Test Page</title></head>
<body class="yui-skin-sam">
<!-- Bootstrap Script //-->
<script type="text/javascript" src="../../../../yui3/build/yui/yui-debug.js"></script>
<!-- Initialization process //-->
<script type="text/javascript">
YUI_config = {
<!doctype html>
<html>
<head><title>Test Page</title></head>
<body class="yui-skin-sam">
<!-- Bootstrap Script //-->
<script type="text/javascript" src="../../../../yui3/build/yui/yui-debug.js"></script>
<!-- Initialization process //-->
<script type="text/javascript">
YUI_config = {
Y.namespace('Plugin').NodeAccordion = Y.Base.create("NodeAccordion", Y.Plugin.Base, [], {
// Prototype Properties for NodeAccordion
/**
* @property _root
* @description Node instance representing the root node in the accordion.
* @default null
* @protected
* @type Node
/**
* <p>The Accordion Node Plugin makes it easy to transform existing
* markup into an accordion element with expandable and collapsable elements,
* elements are easy to customize, and only require a small set of dependencies.</p>
*
*
* <p>To use the Accordion Node Plugin, simply pass a reference to the plugin to a
* Node instance's <code>plug</code> method.</p>
*
* <p>
/**
* <p>The Dispatcher satisfies a very common need of developers using the
* YUI library: dynamic execution of HTML Fragments or remote content. Typical strategies to
* fulfill this need, like executing the innerHTML property or referencing remote
* scripts, are unreliable due to browser incompatibilities. The Dispatcher normalize
* this behavior across all a-grade browsers.
*
* <p>To use the Dispatcher Module, simply create a new object based on Y.Dispatcher
* and pass a reference to a node that should be handled.</p>
*
YUI_config = {
// standard YUI_config configuration
combine: true,
filter: 'min',
// event binder configuration starts here
eventbinder: {
// set of options that should be preserved for every event (all optional)
ev: {
ctrlKey: 0,
altKey: 0,
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>test</title>
</head>
<body>
<!-- YUI 3 Seed //-->
<!doctype html>
<html>
<head>
<title>Event Binder - Simple</title>
</head>
<body>
<div id="doc">
<div id="democlick">
<!doctype html>
<html>
<head>
<title>Event Binder Evolution</title>
</head>
<body>
<div id="doc">
<div id="democlick">