isPressed
Global Property
Set the followed state
Updates the UI and adds text to the a11y box.
Links
init(rootEl, options)
Global Function
Initialize components on the page
Returns
-
FtConceptButton | Array.<FtConceptButton>
- - ft-concept-button instance(s)
Links
new LazyLoad(rootEl, opts)
Class constructor.
Methods
-
getDataAttributes(rootEl)
- (static) Get the data attributes from the ${name.titleCase}Element. If the message is being set up
declaratively, this method is used to extract the data attributes from the DOM.
-
init(rootEl, opts)
- (static) Initialise component.
Links
new SteppedProgressStep(stepElement, parent)
Represents a step in a stepped progress component.
Class constructor.
Methods
-
isComplete
- (instance) Get whether the step has the "complete" state.
-
isCurrent
- (instance) Get whether the step has the "current" state.
-
isError
- (instance) Get whether the step has the "error" state.
-
isFuture
- (instance) Get whether the step has no explicit state (and so is a future step).
-
markAsComplete
- (instance) Set the step's state to "complete".
-
markAsCurrent
- (instance) Set the step's state to "current".
-
markAsError
- (instance) Set the step's state to "error".
-
markAsFuture
- (instance) Remove all states from the step (marking it as a future step).
Links
new SteppedProgress(steppedProgressElement, options)
Represents a stepped progress component.
Class constructor.
Methods
-
getSteps
- (instance) Get an array of steps.
-
getCompletedSteps
- (instance) Get an array of steps with a "completed" status.
-
hasStepAtIndex(index)
- (instance) Get whether a step exists at a given index (0-based).
-
getStepAtIndex(index)
- (instance) Get the step at a given index (0-based).
-
getCurrentStep
- (instance) Get the step which has the "current" state. If there are multiple steps with this state then
the last one will be returned.
-
getLastStep
- (instance) Get the last step in the stepped progress.
-
isComplete
- (instance) Get whether all steps have the "completed" state.
-
getNextStep
- (instance) Get the next future step (a step which does not have the "current", "complete", or "error"
states). If no such step exists, the last step will be returned.
-
progress
- (instance) Mark the current step as "complete" and then mark the next step as "current". If all steps
have the "complete" state then this method does nothing.
-
getDataAttributes(steppedProgressElement)
- (static) Get the data attributes from the stepped progress element. If the component is being set up
declaratively, this method is used to extract the data attributes from the DOM.
-
init(rootElement, options)
- (static) Initialise stepped progress component.
Links
new module.exports#module.exports(element, options)
Class constructor.
Links
LazyLoad.getDataAttributes(rootEl)
Static Method
Get the data attributes from the ${name.titleCase}Element. If the message is being set up
declaratively, this method is used to extract the data attributes from the DOM.
Returns
-
Object.<string, any>
- - The options
Links
LazyLoad.init(rootEl, opts)
Static Method
Initialise component.
Returns
-
LazyLoad | Array.<LazyLoad>
- - The freshly made LazyLoad or LazyLoads
Links
SteppedProgressStep#isComplete
Instance Method
Get whether the step has the "complete" state.
Returns
-
boolean
- Returns whether the step is complete.
Links
SteppedProgressStep#isCurrent
Instance Method
Get whether the step has the "current" state.
Returns
-
boolean
- Returns whether the step is current.
Links
SteppedProgressStep#isError
Instance Method
Get whether the step has the "error" state.
Returns
-
boolean
- Returns whether the step has an error.
Links
SteppedProgressStep#isFuture
Instance Method
Get whether the step has no explicit state (and so is a future step).
Returns
-
boolean
- Returns whether the step has no explicit state.
Links
SteppedProgressStep#markAsComplete
Instance Method
Set the step's state to "complete".
Returns
Links
SteppedProgressStep#markAsCurrent
Instance Method
Set the step's state to "current".
Returns
Links
SteppedProgressStep#markAsError
Instance Method
Set the step's state to "error".
Returns
Links
SteppedProgressStep#markAsFuture
Instance Method
Remove all states from the step (marking it as a future step).
Returns
Links
SteppedProgress#getSteps
Instance Method
Get an array of steps.
Returns
-
Array.<SteppedProgressStep>
- Returns an array of steps.
Links
SteppedProgress#getCompletedSteps
Instance Method
Get an array of steps with a "completed" status.
Returns
-
Array.<SteppedProgressStep>
- Returns an array of steps.
Links
SteppedProgress#hasStepAtIndex(index)
Instance Method
Get whether a step exists at a given index (0-based).
Returns
-
boolean
- Returns whether a step exists at a given index.
Links
SteppedProgress#getStepAtIndex(index)
Instance Method
Get the step at a given index (0-based).
Returns
-
SteppedProgressStep
- Returns the step at the given index.
Links
SteppedProgress#getCurrentStep
Instance Method
Get the step which has the "current" state. If there are multiple steps with this state then
the last one will be returned.
Returns
-
SteppedProgressStep
- Returns the current step.
Links
SteppedProgress#getLastStep
Instance Method
Get the last step in the stepped progress.
Returns
-
SteppedProgressStep
- Returns the last step.
Links
SteppedProgress#isComplete
Instance Method
Get whether all steps have the "completed" state.
Returns
-
boolean
- Returns whether all steps are completed.
Links
SteppedProgress#getNextStep
Instance Method
Get the next future step (a step which does not have the "current", "complete", or "error"
states). If no such step exists, the last step will be returned.
Returns
-
SteppedProgressStep
- Returns the next step.
Links
SteppedProgress#progress
Instance Method
Mark the current step as "complete" and then mark the next step as "current". If all steps
have the "complete" state then this method does nothing.
Returns
Links
SteppedProgress.getDataAttributes(steppedProgressElement)
Static Method
Get the data attributes from the stepped progress element. If the component is being set up
declaratively, this method is used to extract the data attributes from the DOM.
Returns
-
object
- Returns an options object constructed from the DOM.
Links
SteppedProgress.init(rootElement, options)
Static Method
Initialise stepped progress component.
Returns
-
SteppedProgress | Array.<SteppedProgress>
- Returns a stepped progress instance, or an array of instances.
Links