> For the complete documentation index, see [llms.txt](https://docs.yansalabs.com/barcode-and-qr-code-generator/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yansalabs.com/barcode-and-qr-code-generator/technical-docs/using-a-barcode-label/use-in-custom-app.md).

# Use in Custom App

### Generate barcode label HTML for use in your own custom app:

1. Include the code below in any area where server-side scripting is allowed in order to generate & consume the HTML for a barcode label. The function returns an HTML string of the complete barcode label.

<pre class="language-javascript"><code class="lang-javascript">var barHelper = new x_yala_bargen.BarcodeGeneratorHelper();
<strong>var barHTML = barHelper.getBarcodeHTML(barcodeID, tableName, recID, serverRender);
</strong></code></pre>

* **barcodeID**: SysID of the **Barcode Generator** record to use for barcode generation
* **tableName**: Table of the record being referenced for barcode generation
* **recID**: SysID of the record being reference for barcode generation
* **serverRender**: true/false whether to render the HTML server-side (usually true)

### Generate barcode part SVG/HTML for use in your own custom app:

{% hint style="info" %}
This method generates SVG/HTML code for a **Barcode Part**, not an entire **Barcode Generator** label.
{% endhint %}

1. Include the code below in any area where server-side scripting is allowed in order to generate & consume the SVG/HTML for a barcode part. The function returns an HTML string of the complete barcode part SVG code.

<pre class="language-javascript"><code class="lang-javascript">var barHelper = new x_yala_bargen.BarcodeGeneratorHelper();
<strong>var barPartSVG = barHelper.getBarcodeSVG(barPartID, tableName, recID);
</strong></code></pre>

* **barPartID**: SysID of the **Barcode Part** record to use for barcode generation
* **tableName**: Table of the record being referenced for barcode generation
* **recID**: SysID of the record being reference for barcode generation
