Request a Demo
  • Platform
    • Donations
    • Campaigns
    • Events
    • eCards
    • CRM
  • Features
  • Integrations
  • Resources
    • Docs
    • Product updates
    • Changelog
  • Company
  • Platform
    • Donations
    • Campaigns
    • Events
    • eCards
    • CRM
  • Features
  • Integrations
  • Resources
    • Docs
    • Product updates
    • Changelog
  • Company
Request a Demo

Classes

  • Helpers/AdminMenuHelper
  • Helpers/API
  • Helpers/Helper

User Guides

  • User Guide: Settings – Advanced (LevCharity Admin Only)
  • User Guide: Settings – P2P Campaigns
  • User Guide: Settings – Account Signup
  • User Guide: Settings – Forms
  • User Guide: Settings – Payment and Currencies
  • User Guide: Settings – About Section
  • User Guide: Managing Recurring Subscriptions
  • How to Add a Contact
  • How to Add an Offline Transaction

Shortcodes

  • Social Share Widget – Internal Guide

JS

  • Globals
  • DOM
  • Canvas API (added with chaiathon)

Getting Started

  • Onboarding

Donations & Payments

  • How to set up a donation form

Crowdfunding Campaigns

  • Creating and Managing Team Campaigns
  • How to use the P2P signup form
  • How to edit a P2P campaign
  • How to add the P2P signup page on your site.

Emails & Notifications

  • How to set up eCard emails
  • How to setup Subscription emails
  • How to set up Confirmations for your emails
  • How to set up Event email notifications
  • How to set up Event emails
  • How to set up emails for P2P campaigns
  • How to set up emails for your Fundraising Campaigns
  • How to Create Emails for Donation Forms (Admin Guide)

Events

  • How to Add an Event

E-Cards

  • How to set up an eCard

Fundraising Campaigns

  • How to set up your campaign

Sponsorships

  • How to add a sponsorship item
View Categories

DOM

1 min read

Custom Helper class that provides functionality for work with HTML DOM

Methods

DOM.el() = document.querySelector()

DOM.el(‘.selector’, parent) = parent.querySelector()

DOM.els() = document.querySelectorAll()

DOM.els(‘.selector’, parent) = parent.querySelecrtorAll()

DOM.getElement() – this is the base which is used for both, DOM.el and DOM.els

DOM.mostParent – something like element.closest(), but a bit different. the closest fucntion returns the first parent, DOM.mostParent returns the most toplevel element

DOM.cildren = element.children

DOM.parents – the list of all the parent elements

DOM.isHtmlString – checks if the string passed contains HTML tags or not

DOM.triggerEvent – triggers any event needed. Default events already has a default props, custom ones needs get passed options

DOM.inserAfter – inserts an element after reference one

DOM.insertBefore – inserts an element before reference one

DOM.create – simillar to react’s element creation, passing the tag, attributes and children – it will create an elements easier. children param can be a singular string or an arrat of elements, can be used with nested calling of this function

DOM.compareElement – check if element matches the passed selector

DOM.addEvent – allowing to add miltiple event listeners with different events to one element, allowing to pass or seletor or specify element. returns function that will clear event listeners

DOM.observeElements – passing selector and callback, callback will called ONCE if element is visible on the screen.

Was this article helpful?
Still stuck? How can we help?

How can we help?

Updated on March 28, 2025
GlobalsCanvas API (added with chaiathon)
Join our newsletter

Add your email to stay up to date on features and new releases:

loader

  • Docs
  • Changelog
  • Privacy Policy
  • Terms of Service
  • Cookies Settings
  • Docs
  • Changelog
  • Privacy Policy
  • Terms of Service
  • Cookies Settings