Document Publish
Typical tag name: doc-publish
Exported class: DocPublish
Inheritance: DocPublish <-- SKUIBase <-- (imm-dom stack)
Single press control for instantly publishing Documents to the nearest Directory by qx. Publish uses m$_add_entry.
Required Assets
- imm-dom, i18n
- sk.css
External Requirements
- Open Props
- Font Awesome 6
- Shoelace
WC Dependencies
ivc-zs
API
Attributes
| Attribute | Default | Enumerators | Usage |
|---|---|---|---|
ui |
button |
button |
Present UI as button. |
disabled |
false |
N/A | Disabled from clicking. |
label |
Publish Document |
N/A | Set button label to attribute. |
icon |
fas fa-file-export |
N/A | Set button icon as prefix. |
is-circle |
false |
Boolean | Display button as a circle with icon only. |
Properties
| Property | Type | Default | Usage |
|---|---|---|---|
| (None.) |
Events
| Event | Detail | Usage |
|---|---|---|
| (None.) |
Methods
| Method | Arguments | Usage |
|---|---|---|
setData |
data |
Sets data which will be added to the Directory. |
Slots
| Slot | Usage |
|---|---|
| (None.) |
CSS Parts
| Part | Usage |
|---|---|
| (None.) |
Example
<link rel="stylesheet" type="text/css" href="/css/sk-root.css">
<script type=module src='/cdn/@encipher-sk/ivcore/esm/doc_publish.js'></script>
<div class='example'>
<ivc-i18n></ivc-i18n>
<ivc-zs reload-ws></ivc-zs>
<doc-publish></doc-publish>
</div>