Sha256: 8c3f65962e94d2540a16617438130bf39fd2ee796a0f703d77070f20158fc18b
Contents?: true
Size: 707 Bytes
Versions: 19
Compression:
Stored size: 707 Bytes
Contents
import { RemoteSelect } from "alchemy_admin/components/remote_select" class AttachmentSelect extends RemoteSelect { _renderResult(item) { return this._renderListEntry(item) } /** * html template for each list entry * @param {object} page * @param {string} term * @returns {string} * @private */ _renderListEntry(attachment, term) { return ` <div class="attachment-select--attachment"> <alchemy-icon name="${attachment.icon_css_class}"></alchemy-icon> <span class="attachment-select--attachment-name">${this._hightlightTerm(attachment.name, term)}</span> </div> ` } } customElements.define("alchemy-attachment-select", AttachmentSelect)
Version data entries
19 entries across 19 versions & 1 rubygems