Component-Specific APIs

Good news, everyone!

We are currently writing more material for our Javascript API. All of the objects and functions you see below are part of Skuid’s public API, even if they aren’t fully documented yet. Feel free to experiment while we write about them—and check back later for updates.

Along with the standard functions available to all components, several of Skuid’s delivered components have their own unique APIs. Each Component may have its own APIs, available on all instances of the given skuid.component.Component.

To see this in action, enter a Skuid page and complete the following steps:

  1. Open the browser’s console

  2. Set a variable to access a component in console

    1
    var component = skuid.component.getByType('Insert-componentType-Here')[0]
    

Now that the component variable is pointed to a Skuid component on the page, it will have access to any available component-specific APIs.

If component were a Tab Set, a new tab could be selected within it like so:

1
2
3
component.selectTab('tabId')
// or
skuid.component.getByType('tabset')[0].selectTab('tabId')

Browse the sections below to see which component-specific APIs are available.

Tab Set [[]]

Available on instances of the tabset componentType.

selectTab(tabId)

Selects and activates the tab for a given unique Id.

Arguments:
  • tabId (string) – Unique Id of the tab to be selected. Set in Tab Properties within the Composer.
getSelectedTabId()

Getter for the currently selected tab

Returns:Unique Id of the tab that is current selected
Return type:String
findTabToActivate()

Called internally when the currently selected tab is unrendered, finds another rendered tab to activate