<div id="method_{{name}}" class="method item{{#if access}} {{access}}{{/if}}{{#if deprecated}} deprecated{{/if}}{{#if extended_from}} inherited{{/if}}">
    <h3 class="name">{{name}}</h3>
    <code>
    {{name}}
    {{#if params}}
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            {{#params}}
                <li class="arg">
                    {{#if optional}}
                        [{{name}}{{#if optdefault}}={{optdefault}}{{/if}}]
                    {{else}}
                        {{name}}
                    {{/if}}
                </li>
            {{/params}}
            </ul><span class="paren">)</span>
        </div>
    {{else}}
        <span class="paren">()</span>
    {{/if}}
    </code>

    {{#if return}}
        <span class="returns-inline">
            <span class="type">{{#crossLink returnType}}{{/crossLink}}</span>
        </span>
    {{/if}}

    {{#if deprecated}}
        <span class="flag deprecated"{{#if deprecationMessage}} title="{{deprecationMessage}}"{{/if}}>deprecated</span>
    {{/if}}

    {{#if access}}
        <span class="flag {{access}}">{{access}}</span>
    {{/if}}

    {{#if final}}
        <span class="flag final">final</span>
    {{/if}}

    {{#if static}}
        <span class="flag static">static</span>
    {{/if}}

    {{#if chainable}}
        <span class="flag chainable">chainable</span>
    {{/if}}

    {{#if async}}
        <span class="flag async">async</span>
    {{/if}}

    <div class="meta">
        {{#if overwritten_from}}
            <p>Inherited from
            <a href="{{crossLinkRaw overwritten_from/class}}#method_{{overwritten_from/name}}">
                {{overwritten_from/class}}
            </a>
            {{#if foundAt}}
            but overwritten in
            {{/if}}
        {{else}}
            {{#if extended_from}}
                <p>Inherited from
                <a href="{{crossLinkRaw extended_from}}#method_{{name}}">{{extended_from}}</a>:
            {{else}}
                {{#providedBy}}
                    <p>Provided by the <a href="../modules/{{.}}.html">{{.}}</a> module.</p>
                {{/providedBy}}
                <p>
                {{#if foundAt}}
                Defined in
                {{/if}}
            {{/if}}
        {{/if}}
        {{#if foundAt}}
        <a href="{{foundAt}}">`{{{file}}}:{{{line}}}`</a>
        {{/if}}
        </p>


        {{#if deprecationMessage}}
            <p>Deprecated: {{deprecationMessage}}</p>
        {{/if}}

        {{#if since}}
            <p>Available since {{since}}</p>
        {{/if}}
    </div>

    <div class="description well well-small sign-left3">
        {{{methodDescription}}}
    </div>

    {{#if params}}
        <div class="params">
            <h4>Parameters:</h4>

            <table class="table table-bordered">
            <tr class='active'><th>name</th><th>type</th><th>flag</th><th>description</th></tr>
            {{#params}}
                <tr class="param">
                    {{#if optional}}
                    <td>
                        <code class="param-name optional">[{{name}}{{#if optdefault}}={{optdefault}}{{/if}}]</code></td>
                    <td><span class="type">{{#crossLink type}}{{/crossLink}}</span></td>
                    <td><span class="flag optional" title="This parameter is optional.">optional</span>
                    {{else}}
                       <td> <code class="param-name">{{name}}</code>
                       <td> <span class="type">{{#crossLink type}}{{/crossLink}}</span>
                       <td>
                    {{/if}}

                    {{#if multiple}}
                        <span class="flag multiple" title="This argument may occur one or more times.">multiple</span>
                    {{/if}}
                    </td>
                    <td><div class="param-description">
                        {{{description}}}
                    </div>

                    {{#if props}}
                        <table class="table table-bordered">
                         <tr class='active'><th>name</th><th>type</th><th>flag</th><th>description</th></tr>
                           {{#props}}
                            <tr class="param">
                            {{#if optional}}
                                <td>
                                    <code class="param-name optional">[{{name}}{{#if optdefault}}={{optdefault}}{{/if}}]</code></td>
                                <td><span class="type">{{#crossLink type}}{{/crossLink}}</span></td>
                                <td><span class="flag optional" title="This parameter is optional.">optional</span>
                                {{else}}
                                   <td> <code class="param-name">{{name}}</code>
                                   <td> <span class="type">{{#crossLink type}}{{/crossLink}}</span>
                                   <td>
                                {{/if}}

                                {{#if multiple}}
                                    <span class="flag multiple" title="This argument may occur one or more times.">multiple</span>
                                {{/if}}
                                </td>
                                <td><div class="param-description">
                                    {{{description}}}
                                </div>
                                {{#if props}}
                                    <table class="table table-bordered">
                                     <tr class='active'><th>name</th><th>type</th><th>flag</th><th>description</th></tr>
                                       {{#props}}
                                        <tr class="param">
                                        {{#if optional}}
                                            <td>
                                                <code class="param-name optional">[{{name}}{{#if optdefault}}={{optdefault}}{{/if}}]</code></td>
                                                <td><span class="type">{{#crossLink type}}{{/crossLink}}</span></td>
                                                <td><span class="flag optional" title="This parameter is optional.">optional</span>
                                                {{else}}
                                                   <td> <code class="param-name">{{name}}</code>
                                                   <td> <span class="type">{{#crossLink type}}{{/crossLink}}</span>
                                                   <td>
                                                {{/if}}

                                                {{#if multiple}}
                                                    <span class="flag multiple" title="This argument may occur one or more times.">multiple</span>
                                                {{/if}}
                                                </td>
                                                <td><div class="param-description">
                                                    {{{description}}}
                                                </div>
                                             </td>
                                        </tr>
                                        {{/props}}
                                    </table>
                                    </td>
                                {{/if}}
                            </tr>
                            {{/props}}
                        </table>
                        </td>
                    {{/if}}
                </tr>
            {{/params}}
            </table>
        </div>
    {{/if}}

    {{#return}}
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                {{#if description}}
                    {{#if type}}
                        [<span class="type">{{#crossLink type}}{{/crossLink}}</span>]
                    {{/if}}
                    {{{description}}}
                {{else}}
                    {{#if type}}
                        <span class="type">{{#crossLink type}}{{/crossLink}}</span>:
                    {{/if}}
                {{/if}}
            </div>
        </div>
    {{/return}}

    {{#if example}}
        <div class="example">
            <h4>Example:</h4>
            <ul class="nav nav-tabs example-list">
                {{#each exampleTitles}}
                <li role="presentation" {{#if @index}} {{else}} class="active" {{/if}} _no='{{@index}}'> <a>{{this}}</a></li>
                {{/each}}
            </ul>

            <div class="example-content {{#if show}} showdemo {{/if}}">
                {{{example}}}
            </div>

             <button class="btn btn-info btn-viewDemo" type="button">view demo</button>
            <button class="btn btn-info btn-editDemo" type="button">edit code</button>
        </div>
    {{/if}}
</div>
