Feedback Laraform is now in maintenance mode. Read more on our GitHub.

tabs$ - <FormTabs>

Component used by Tabs.

#Properties

Name Type Default Description
tabs object - Tabs definition. required
elements$ object - Form element components. required
events array [] Helper property used to store available events.
tabs$ object {} Object of tab$ components.
visible$ object - Returns the visible tab$ components.
current$ object - Returns the current tab$ components.
first$ object - Returns the first tab$ components.

#Methods

# .on(event, callback)

Parameters
  • event string : event to listen for.
  • callback function : callback to run when the event is triggered. The this variable refers to the component the listener is set for.

Adds a listener for an event.


# .off(event)

Parameters
  • event string : event to remove the listeners for.

Removes all listeners for an event.


# .fire(event, args) @returns {any}

Parameters
  • event string : event to fire.
  • args object : arguments to pass for the event's listeners.

Fires an event.


# .__(expr, data) @returns {string}

Parameters
  • expr string : expression to be translated using . dot syntax.
  • data object : data to be passed for the expression

Translates an expression to current locale.


# .select(tab)

Parameters
  • tab object : key of tab in tabs object

Selects a tab.


# .tab$(tab) @returns {wizardStep$}

Parameters
  • tab object : key of tab in tabs object

Returns a specific tab$.


# .reset()

Reset tabs, meaning selecting first$ tab.


#Events

# change

Triggered the tab changes using select method.