Reference
The full API of every module: configuration, methods, events and errors.
Core and apps
Core utilitiesThe vUX core is the part of the library every module stands on. It isn't a component, so nothing is constructed or initialised. Importing it puts the following on window:SPA EngineSPAEngine (vUX-spaEngine.js) turns a plain HTML page into a single-page application. It intercepts clicks on designated links, fetches HTML fragments from the server, mounts them…ComponentComponent (vUX-component.js) is bring-your-own-component: you write the markup, mark it with data-v-* bindings, and vUX clones, binds, wires and tears down instances of it. It is…StoreStore (vUX-store.js) is shared state for the parts of a page that show the same data. A cart badge in the header, the cart drawer and the checkout total all read one cart field.…Data ViewDataView (vUX-dataView.js) is keyed data-to-DOM binding for the parts of a page that receive frequent, fine-grained updates: data tables, dashboards, tickers, feeds. It keeps a…
Feedback
MessageBoxMessageBox posts notification messages at the top of the window. By default a message drops in from above, stays for config.duration, and leaves the way it came. It can be aligned…PromptPrompt asks the visitor something in a modal dialog and hands the answer back as a Promise. It replaces window.alert(), window.confirm() and window.prompt() with three methods of…Modal DisplayerModalDisplayer turns any hidden element on the page into a modal dialog, opened by clicking a trigger element and closed by a close button, the Escape key, or a click on the…ToolTipToolTip replaces the browser's native title tooltip with a styled one. You name a class; every element with that class and a title attribute shows its title in a tip box that…
Loading
Progress IndicatorProgressIndicator (vUX-progressIndicator.js) renders a loading indicator inside a "progress space" element while work is in flight: a linear bar across the space, a circular…SkeletonSkeleton shows placeholder blocks shaped like the content that is about to arrive. You don't draw the placeholder: it is derived from the template you already wrote for the real…FontSplashFontSplash is a splash screen whose loader is a word. You give it some text and a font. The word is set in that font, a gradient flows through the letters, and the letters fade in…
Forms
Form ComponentsFormComponents replaces native form controls with fully styleable custom widgets while keeping the native input in the DOM as the source of truth. The native element is visually…FormValidatorFormValidator checks form fields against rules you write as a small object, and shows each failing field's message in a box under it, or beside it on the left or right. It also…
Motion and display
CarouselCarousel turns a row of slides into an autoplaying slideshow. You give it a container and a viewport holding the slides; it lays the slides out side by side, slides the viewport…MarqueeMarquee turns a row of items into an endless scrolling strip: logos, technology names, testimonials, anything. You give it a container whose children are the items; it clones them…ListScrollerListScroller turns a list into one horizontal row that scrolls inside its container. Two buttons you provide move it a step at a time. Each button gets an inactive class whenever…TimeLineListTimeLineList draws ordinary lists as vertical timelines: a rail down the left, a marker beside each entry, and a label to the left of each marker. Each list carries its own styles…Auto WriterAutoWriter types text into an element one character at a time, at a randomised human-looking speed. A small directive syntax embedded in the string adds line breaks, pauses and…
Drawing and layout
SketchPadSketchPad turns an element into a drawing surface. It supports:CShapesCShapes draws three shapes on a <canvas>: a progress ring that can animate between values, a marching-ants border whose dashes run round the canvas, and a fixed dashed border…ResizerResizer makes an element draggable-to-resize. You give it a target and tell it where to put a drag handle; it appends the handle, listens for a drag on it, and writes a new width…