UNPKG

@openhab-ui/setup-and-maintenance

Version:

Configuration and maintenance interface for openHAB

1 lines 1.47 kB
<h3>Item tags / storage</h3><oh-prop-bind for="formbind" contextfrom="ui-context-help" sourceproperty="contextdata" attribute="adapter" unwrap="adapter"></oh-prop-bind><oh-prop-bind for="formbind" contextfrom="ui-context-help" sourceproperty="contextdata" property="objectid" unwrap="id"></oh-prop-bind><oh-form-bind id="formbind" allownew></oh-form-bind><oh-vue-form></oh-vue-form><template><div><h5><oh-doc-link title="About unique IDs" show href="contexthelp/uniqueid.md" class="link mr-2"><i class="far fa-question-circle"></i></oh-doc-link>ID</h5><div :title="uniqueid" @click="copyClipboard($event, uniqueid)" class="mb-4">{{uniqueid}}</div><h5><oh-doc-link show href="contexthelp/storage.md" class="link mr-2"><i class="far fa-question-circle"></i></oh-doc-link>Storage</h5><div v-if="value.storage" class="mb-4">Association: <input value="value.storage">@ <input value="valuecopy.storage" type="number" placeholder="Position"></div><div v-else class="mb-4">Storage service not ready</div><h5><oh-doc-link show href="contexthelp/tags.md" class="link mr-2"><i class="far fa-question-circle"></i></oh-doc-link>Tags</h5><ui-tags open v-if="valuecopy.tags" :suggestions="commontags()" :value.prop="valuecopy.tags" @input="valuecopy.tags = $event.target.value"></ui-tags><div class="btn-group btnbar my-2" role="group"><button @click.prevent="save" class="btn btn-primary" :class="{disabled:unchanged}"><i class="fas fa-save"></i> Save</button></div></div></template>