Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 1.78 KB

File metadata and controls

51 lines (41 loc) · 1.78 KB
layout post
title Load content through post in
description Learn here all about Load content through post in Syncfusion
platform ej2-javascript
control Load content through post
publishingplatform
documentation ug
domainurl

Load content through post in ##Platform_Name## Accordion control

Accordion supports to load external contents through AJAX library. Refer the below steps.

  • Import the Ajax module from ej2-base and initialize with URL path.

  • Get data from the Ajax Success event to initialize Accordion with retrieved external path data.

{% if page.publishingplatform == "typescript" %}

{% tabs %} {% highlight ts tabtitle="index.ts" %} {% include code-snippet/accordion/accordion-ajax-cs1/index.ts %} {% endhighlight %} {% highlight html tabtitle="index.html" %} {% include code-snippet/accordion/accordion-ajax-cs1/index.html %} {% endhighlight %} {% highlight html tabtitle="ajax.html" %} {% include code-snippet/accordion/accordion-ajax-cs1/ajax.html %} {% endhighlight %} {% endtabs %}

{% previewsample "page.domainurl/code-snippet/accordion/accordion-ajax-cs1" %}

{% elsif page.publishingplatform == "javascript" %}

{% tabs %} {% highlight js tabtitle="index.js" %} {% include code-snippet/accordion/accordion-ajax-cs1/index.js %} {% endhighlight %} {% highlight html tabtitle="index.html" %} {% include code-snippet/accordion/accordion-ajax-cs1/index.html %} {% endhighlight %} {% highlight html tabtitle="ajax.html" %} {% include code-snippet/accordion/accordion-ajax-cs1/ajax.html %} {% endhighlight %} {% endtabs %}

{% previewsample "page.domainurl/code-snippet/accordion/accordion-ajax-cs1" %} {% endif %}