HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/slfopp7cb1df/public_html/sitepacket.com/src/client/src/UI/menu/itemArtboard.js
import { htmlToElement } from 'Editor/scripts/utilities'
import * as icons from 'Client/UI/icons'

export default class ItemArtboard {
  element = document.createElement('div')
  options = undefined

  constructor({ options, imageMapId }) {
    this.options = options
    this.element.classList.add('imp-object-list-item-artboard')
    this.element.dataset.listItemId = this.options.id
    this.element.dataset.imageMapId = imageMapId

    let span = document.createElement('span')
    span.innerHTML = this.options.title

    let arrow = htmlToElement(icons.arrowDown)

    this.element.appendChild(span)
    this.element.appendChild(arrow)
  }
  expand() {
    this.element.classList.remove('imp-collapsed-artboard-item')
  }
  collapse() {
    this.element.classList.add('imp-collapsed-artboard-item')
  }
}