Clone on Gitea
Introduction
Explained by ducks
FAQ
Getting Started
Components
Component Basics
Auto Initialization From DOM
Templates
Children and Parents
Roles
Strictness
Fields
What is a Field
Binding Fields to DOM
Reading and Writing Fields
Value Casting
Flags
Events
Overview
Event Handlers
DOM Events
Custom Events
Propagation and Flow
Advanced Event Control
Beyond Components
States
Overview
StateEngine
DisplayStateEngine
Field Matchers
Ordering and priority
Debugging
Advanced usage
Ajax
ComponentUI
VirtualForm
Unit Testing
Helpers
Overview
Cookies
Arrays

Helpers

Qite ships with a small set of utility helpers used internally across components, Ajax, states and events. They live under src/helpers/ and are framework-agnostic. These helpers are not tied to BaseComponent, but you can import and use them directly in your own application code.

Helpers include the following files:

  • cookies.js— simple cookie management
  • arrays.js— small array utilities
  • objects.js— object filtering and shaping helpers
  • types.js— lightweight type guards
  • public_promise.js— externally-resolvable promise

Having those helpers helps us avoid needless dependencies and allows us to have them exactly as we want them: handcrafted to Qite's purposes, yet general enough to be used in any code. Hope you'll find them useful.

In the following pages we document selected helpers that you may find to be most useful in application code.