Value Functions

Corset value functions are functions that can be used as values for properties in declarations, that represent contextual values or take arguments for calculation.

Data manipulation functions

These functions take parameters, such as insertion values or custom variables and manipulate them to calculate a response.

bind()
Creates a function with the first N arguments bound.
get()
Gets a value from an object (like the dot-syntax in JavaScript).

Data extraction functions

These functions allow you to extract values from the DOM.

data()
Gets the dataset value of an element (equivalent to el.dataset.*).

Each-scoped functions

These functions are scoped to within a single item within an each clause.

item()
Gets the current item within the each iteration.
index()
Gets the current (zero-based) index within the each iteration.

Sheet-scoped functions

These functions operate on the entire sheet and can be used to get values within that context.

select()
Selects an element using a selector that is scoped from the root element of the sheet.
var()
Gets the value of a variable within an ancestor of the selected element (like CSS var()).
store-get()
Gets a key from a store.
store()
Gets a named store.
custom functions
Functions defined as custom properties, but usable as functions.