<section>
    <h3 id="accessors">
        {{t "accessors" }}
    </h3>
    {{#each accessors}}
        <table class="table table-sm table-bordered">
            <tbody>
                <tr>
                    <td class="col-md-4">
                        <a name="{{@key}}"></a>
                        <span class="name"><b>{{@key}}</b><a href="#{{@key}}"><span class="icon ion-ios-link"></span></a></span>
                    </td>
                </tr>

                {{#if this.getSignature}}
                <tr>
                    <td class="col-md-4">
                        <span class="accessor"><b>get</b><code>{{{functionSignature this.getSignature}}}</code></span>
                    </td>
                </tr>
                    {{#if this.getSignature.line}}
                        {{#isTabEnabled ../navTabs "source"}}
                            <tr>
                                <td class="col-md-4">
                                    <div class="io-line">{{t "defined-in" }} <a href="" data-line="{{{this.getSignature.line}}}" class="link-to-prism">{{../file}}:{{{this.getSignature.line}}}</a></div>
                                </td>
                            </tr>
                        {{/isTabEnabled}}
                    {{/if}}
                    {{#or this.getSignature.description this.getSignature.jsdoctags}}
                    <tr>
                        <td class="col-md-4">
                            {{#if this.getSignature.description}}
                                <div class="io-description">{{{parseDescription this.getSignature.description ../depth}}}</div>
                            {{/if}}

                            {{#if this.getSignature.jsdoctags}}
                                {{#jsdoc-params-valid this.getSignature.jsdoctags}}
                                <div class="io-description">
                                    {{#jsdoc-params this.getSignature.jsdoctags}}
                                        <b>{{t "parameters" }} :</b>
                                        <table class="params">
                                            <thead>
                                                <tr>
                                                    <td>{{t "name" }}</td>
                                                    {{#one-parameter-has tags 'type'}}
                                                        <td>{{t "type" }}</td>
                                                    {{/one-parameter-has}}
                                                    <td>{{t "optional" }}</td>
                                                    {{#one-parameter-has tags 'comment'}}
                                                        <td>{{t "description" }}</td>
                                                    {{/one-parameter-has}}
                                                </tr>
                                            </thead>
                                            <tbody>
                                                {{#each tags}}
                                                    <tr>
                                                        {{#if name}}
                                                            <td>{{name}}</td>
                                                        {{/if}}
                                                        
                                                        {{#one-parameter-has ../tags 'type'}}
                                                            <td>
                                                                {{#if type}}
                                                                    {{> link-type type=type }}
                                                                {{/if}}
                                                            </td>
                                                        {{/one-parameter-has}}

                                                        <td>
                                                            {{#if optional}}
                                                                {{t "yes" }}
                                                            {{else}}
                                                                {{t "no" }}
                                                            {{/if}}
                                                        </td>
                                                        
                                                        {{#one-parameter-has ../tags 'comment'}}
                                                            <td>
                                                                {{#if comment}}
                                                                    <code>{{{comment}}}</code>
                                                                {{/if}}
                                                            </td>
                                                        {{/one-parameter-has}}
                                                    </tr>
                                                {{/each}}
                                            </tbody>
                                        </table>
                                    {{/jsdoc-params}}
                                </div>
                                {{/jsdoc-params-valid}}
                                <div>
                                    {{#jsdoc-code-example this.getSignature.jsdoctags}}
                                        <b>{{t "example" }} :</b>
                                        {{#each tags}}
                                            <div>
                                                {{{comment}}}
                                            </div>
                                        {{/each}}
                                    {{/jsdoc-code-example}}
                                </div>
                            {{/if}}
                            {{#if this.getSignature.returnType}}
                                <div class="io-description">
                                    <b>{{t "returns" }} : </b>{{> link-type type=this.getSignature.returnType }}
                                </div>
                                {{#if jsdoctags}}
                                    <div class="io-description">
                                        {{{jsdoc-returns-comment this.getSignature.jsdoctags}}}
                                    </div>
                                {{/if}}
                            {{/if}}
                        </td>
                    </tr>
                    {{/or}}
                {{/if}}

                {{#if this.setSignature}}
                <tr>
                    <td class="col-md-4">
                        <span class="accessor"><b>set</b><code>{{{functionSignature this.setSignature}}}</code></span>
                    </td>
                </tr>
                    {{#if this.setSignature.line}}
                        {{#isTabEnabled ../navTabs "source"}}
                            <tr>
                                <td class="col-md-4">
                                    <div class="io-line">{{t "defined-in" }} <a href="" data-line="{{{this.setSignature.line}}}" class="link-to-prism">{{../file}}:{{{this.setSignature.line}}}</a></div>
                                </td>
                            </tr>
                        {{/isTabEnabled}}
                    {{/if}}
                    {{#or this.setSignature.description this.setSignature.jsdoctags}}
                    <tr>
                        <td class="col-md-4">
                            {{#if this.setSignature.description}}
                                <div class="io-description">{{{parseDescription this.setSignature.description ../depth}}}</div>
                            {{/if}}

                            {{#if this.setSignature.jsdoctags}}
                                {{#jsdoc-params-valid this.setSignature.jsdoctags}}
                                <div class="io-description">
                                    {{#jsdoc-params this.setSignature.jsdoctags}}
                                        <b>{{t "parameters" }} :</b>
                                        <table class="params">
                                            <thead>
                                                <tr>
                                                    <td>{{t "name" }}</td>
                                                    {{#one-parameter-has tags 'type'}}
                                                        <td>{{t "type" }}</td>
                                                    {{/one-parameter-has}}
                                                    <td>{{t "optional" }}</td>
                                                    {{#one-parameter-has tags 'comment'}}
                                                        <td>{{t "description" }}</td>
                                                    {{/one-parameter-has}}
                                                </tr>
                                            </thead>
                                            <tbody>
                                                {{#each tags}}
                                                    <tr>
                                                        {{#if name}}
                                                            <td>{{name}}</td>
                                                        {{/if}}
                                                    
                                                        {{#one-parameter-has ../tags 'type'}}
                                                            <td>
                                                                {{#if type}}
                                                                    {{> link-type type=type }}
                                                                {{/if}}
                                                            </td>
                                                        {{/one-parameter-has}}
                                                    
                                                        <td>
                                                            {{#if optional}}
                                                                {{t "yes" }}
                                                            {{else}}
                                                                {{t "no" }}
                                                            {{/if}}
                                                        </td>
                                                        
                                                        {{#one-parameter-has ../tags 'comment'}}
                                                            <td>
                                                                {{#if comment}}
                                                                    <code>{{{comment}}}</code>
                                                                {{/if}}
                                                            </td>
                                                        {{/one-parameter-has}}
                                                    </tr>
                                                {{/each}}
                                            </tbody>
                                        </table>
                                    {{/jsdoc-params}}
                                </div>
                                {{/jsdoc-params-valid}}
                                <div>
                                    {{#jsdoc-code-example this.setSignature.jsdoctags}}
                                        <b>{{t "example" }} :</b>
                                        {{#each tags}}
                                            <div>
                                                {{{comment}}}
                                            </div>
                                        {{/each}}
                                    {{/jsdoc-code-example}}
                                </div>
                            {{/if}}
                            {{#if this.setSignature.returnType}}
                                <div class="io-description">
                                    <b>{{t "returns" }} : </b>{{> link-type type=this.setSignature.returnType }}
                                </div>
                                {{#if jsdoctags}}
                                    <div class="io-description">
                                        {{{jsdoc-returns-comment this.setSignature.jsdoctags}}}
                                    </div>
                                {{/if}}
                            {{/if}}
                        </td>
                    </tr>
                    {{/or}}
                {{/if}}
            </tbody>
        </table>
    {{/each}}
</section>
