Docs Help

Terms, Icons, and Labels

Many classes have shortcut names used when creating (instantiating) a class with a configuration object. The shortcut name is referred to as an alias (or xtype if the class extends Ext.Component). The alias/xtype is listed next to the class name of applicable classes for quick reference.

Access Levels

Framework classes or their members may be specified as private or protected. Else, the class / member is public. Public, protected, and private are access descriptors used to convey how and when the class or class member should be used.

Member Types

Member Syntax

Below is an example class member that we can disect to show the syntax of a class member (the lookupComponent method as viewed from the Ext.button.Button class in this case).

lookupComponent ( item ) : Ext.Component
protected

Called when a raw config object is added to this container either during initialization of the items config, or when new items are added), or {@link #insert inserted.

This method converts the passed object into an instanced child component.

This may be overridden in subclasses when special processing needs to be applied to child creation.

Parameters

item :  Object

The config object being added.

Returns
Ext.Component

The component to be added.

Let's look at each part of the member row:

Member Flags

The API documentation uses a number of flags to further commnicate the class member's function and intent. The label may be represented by a text label, an abbreviation, or an icon.

Class Icons

- Indicates a framework class

- A singleton framework class. *See the singleton flag for more information

- A component-type framework class (any class within the Ext JS framework that extends Ext.Component)

- Indicates that the class, member, or guide is new in the currently viewed version

Member Icons

- Indicates a class member of type config

- Indicates a class member of type property

- Indicates a class member of type method

- Indicates a class member of type event

- Indicates a class member of type theme variable

- Indicates a class member of type theme mixin

- Indicates that the class, member, or guide is new in the currently viewed version

Class Member Quick-Nav Menu

Just below the class name on an API doc page is a row of buttons corresponding to the types of members owned by the current class. Each button shows a count of members by type (this count is updated as filters are applied). Clicking the button will navigate you to that member section. Hovering over the member-type button will reveal a popup menu of all members of that type for quick navigation.

Getter and Setter Methods

Getting and setter methods that correlate to a class config option will show up in the methods section as well as in the configs section of both the API doc and the member-type menus just beneath the config they work with. The getter and setter method documentation will be found in the config row for easy reference.

History Bar

Your page history is kept in localstorage and displayed (using the available real estate) just below the top title bar. By default, the only search results shown are the pages matching the product / version you're currently viewing. You can expand what is displayed by clicking on the button on the right-hand side of the history bar and choosing the "All" radio option. This will show all recent pages in the history bar for all products / versions.

Within the history config menu you will also see a listing of your recent page visits. The results are filtered by the "Current Product / Version" and "All" radio options. Clicking on the button will clear the history bar as well as the history kept in local storage.

If "All" is selected in the history config menu the checkbox option for "Show product details in the history bar" will be enabled. When checked, the product/version for each historic page will show alongside the page name in the history bar. Hovering the cursor over the page names in the history bar will also show the product/version as a tooltip.

Search and Filters

Both API docs and guides can be searched for using the search field at the top of the page.

On API doc pages there is also a filter input field that filters the member rows using the filter string. In addition to filtering by string you can filter the class members by access level, inheritance, and read only. This is done using the checkboxes at the top of the page.

The checkbox at the bottom of the API class navigation tree filters the class list to include or exclude private classes.

Clicking on an empty search field will show your last 10 searches for quick navigation.

API Doc Class Metadata

Each API doc page (with the exception of Javascript primitives pages) has a menu view of metadata relating to that class. This metadata view will have one or more of the following:

Expanding and Collapsing Examples and Class Members

Runnable examples (Fiddles) are expanded on a page by default. You can collapse and expand example code blocks individually using the arrow on the top-left of the code block. You can also toggle the collapse state of all examples using the toggle button on the top-right of the page. The toggle-all state will be remembered between page loads.

Class members are collapsed on a page by default. You can expand and collapse members using the arrow icon on the left of the member row or globally using the expand / collapse all toggle button top-right.

Desktop -vs- Mobile View

Viewing the docs on narrower screens or browsers will result in a view optimized for a smaller form factor. The primary differences between the desktop and "mobile" view are:

Viewing the Class Source

The class source can be viewed by clicking on the class name at the top of an API doc page. The source for class members can be viewed by clicking on the "view source" link on the right-hand side of the member row.

Themer 1.3.1


top

Sharing Themes

One of the most helpful pieces of Sencha Themer is its ability to create a theme archive that can be shared with other users and can then be applied to any Ext JS 6+ application. In this guide, we'll walk through the steps needed to export and import themes. We will also talk about the options available to apply a theme to an application.

Exporting Themes

There are two types of exporters within Themer: Package and CSS. In a general sense, 'Package' is to be used in ExtJS applications that use Sencha Cmd to build, while 'CSS' is to be used when not using Cmd.

Sencha Package

Once you you are happy with your theme, click the Publish -> Export Theme Package.... You will then see a file dialog that will allow you to save your theme zip file to your machine.

Themes are actually local Ext JS packages, so the archive that Themer produces contains the standard Ext JS package folder structure along with your theme settings.

Note: You can read more about package structures in our Cmd documentation.

This file can now be shared with other users, added to workspaces, and applied to applications.

Importing Themes

To import a theme, unzip the exported archive and place it in your workspace or application's packages/local folder.

If you haven't added any packages to your workspace or application, you will likely not have a "local" folder within "packages". In this case, you can simply create a folder called "local" and place your unzipped theme archive in it.

Applying a Shared Theme

Once you've placed the theme in the packages/local directory of your app or workspace, you can apply it to the app from within Themer. Just select the "Publish" menu and select "Apply theme to app(s)". You can then select the application to which you'd like to apply your theme.

You can also manually apply a theme to your application.

Manually Applying a Theme

You can apply a theme to an application by modifying your app's app.json file. You will just need to modify the theme value to point to your new customized theme.

For instance, your theme may be set to "theme-triton" by default. If your theme is called "theme-foo", you would just change the theme value to be "theme-foo".

If you're using a Universal application, you'll need to change the theme value found within the "builds" object.

Once added, you can verify that the theme has been applied by running "sencha app watch".

CSS

Exporting as CSS can be achieved by selecting Publish -> Export CSS.... This will build the theme package and all of it's assets (images, fonts, etc), and provide a zipped directory of the build artifacts. To apply the theme to your ExtJS application, simply unzip the folder in a place that is served by your web server, then include the relevant CSS file in your index.html.

NOTE: This export cannot be re-opened with Themer because it is a built version of the Theme. Make sure you keep the original theme package safe so you can continue to edit/mantain the theme with Themer.

Themer 1.3.1