1. Attila Losonc
  2. jqueryuihelpers

Source

jqueryuihelpers / JQueryUIHelpers / JQueryUI.Accordion.cs

/* *****************************************
 * Copyright (c) 2012 Attila Losonc
 *
 * This software is subject to the Microsoft Public License (Ms-PL). 
 * A copy of the license can be found in the license.txt file included 
 * in this distribution.
 *
 ***************************************** */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JQueryUIHelpers
{
    public partial class JQueryUI<TModel>
    {
        /// <summary>
        /// Writes the start tag of a new accordion to the response.
        /// </summary>
        /// <returns>The accordion builder.</returns>
        public AccordionBuilder BeginAccordion()
        {
            return Begin(new Accordion());
        }

        /// <summary>
        /// Writes the start tag of the specified accordion to the response.
        /// </summary>
        /// <param name="accordion">The accordion.</param>
        /// <returns>The accordion builder.</returns>
        public AccordionBuilder Begin(Accordion accordion)
        {
            Guard.ArgumentNotNull(() => accordion);
            return new AccordionBuilder(m_HtmlHelper, accordion);
        }
    }
}