seitime-frappe/frappe/docs/current/models/custom/custom_script.html
2015-12-28 14:25:12 +05:30

178 lines
No EOL
3.6 KiB
HTML

<!-- title: Custom Script -->
<div class="dev-header">
<a class="btn btn-default btn-sm" disabled style="margin-bottom: 10px;">
Version 6.x.x</a>
<a class="btn btn-default btn-sm" href="https://github.com/frappe/frappe/tree/develop/frappe/custom/doctype/custom_script"
target="_blank" style="margin-left: 10px; margin-bottom: 10px;"><i class="octicon octicon-mark-github"></i> Source</a>
</div>
<p><b>Table Name:</b> <code>tabCustom Script</code></p>
Adds a custom script (client or server) to a DocType
<h3>Fields</h3>
<table class="table table-bordered">
<thead>
<tr>
<th style="width: 5%">Sr</th>
<th style="width: 25%">Fieldname</th>
<th style="width: 20%">Type</th>
<th style="width: 25%">Label</th>
<th style="width: 25%">Options</th>
</tr>
</thead>
<tbody>
<tr >
<td>1</td>
<td ><code>dt</code></td>
<td >
Link</td>
<td >
DocType
</td>
<td>
<a href="https://frappe.github.io/frappe/current/models/core/doctype">DocType</a>
</td>
</tr>
<tr >
<td>2</td>
<td ><code>script_type</code></td>
<td >
Select</td>
<td class="text-muted" title="Hidden">
Script Type
</td>
<td>
<pre>Client</pre>
</td>
</tr>
<tr >
<td>3</td>
<td ><code>script</code></td>
<td >
Code</td>
<td >
Script
</td>
<td>
<pre>Script</pre>
</td>
</tr>
<tr >
<td>4</td>
<td ><code>sample</code></td>
<td >
HTML</td>
<td >
Sample
</td>
<td></td>
</tr>
</tbody>
</table>
<hr>
<h3>Controller</h3>
<h4>frappe.custom.doctype.custom_script.custom_script</h4>
<h3 style="font-weight: normal;">Class <b>CustomScript</b></h3>
<p style="padding-left: 30px;"><i>Inherits from frappe.model.document.Document</i></h4>
<div class="docs-attr-desc"><p></p>
</div>
<div style="padding-left: 30px;">
<p class="docs-attr-name">
<a name="autoname" href="#autoname" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>autoname</b>
<i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<p class="docs-attr-name">
<a name="on_trash" href="#on_trash" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>on_trash</b>
<i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<p class="docs-attr-name">
<a name="on_update" href="#on_update" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>on_update</b>
<i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
</div>
<hr>
<!-- autodoc -->
<!-- jinja -->
<!-- static -->