Application

The Application Function enables Developers to add extra, application-specific, information to the Adaptable State stored as Key / Value pairs.

note

In earlier versions of AdapTable, Application State included an ApplicationToolbar for users to render application-specific content, but this is now available through the Custom Toolbars.

It does this using Application Data Entries.

Application Data Entries

An ApplicationDataEntry is a simple Key / Value pair object.

The Application State contains an ApplicationDataEntries property allowing developers to store as much information as they want for use at run-time.

caution

The only restriction is that was is stored in the Value can be stringified - as it will be persistd as JSON.

UI Elements

None

Entitlements

N/A

Application Predefined Config Example

export default {
Application: {
ApplicationDataEntries:[
{
Key: 'Name',
Value: 'John Smith',
},
{
Key: 'Employee Number',
Value: 20283728,
},
{
Key: 'Joined Date',
Value: new Date(2017, 13, 7),
},
{
Key: 'Super User',
Value: false,
},
],
}
} as PredefinedConfig;

FAQ

Can we add more Application Entries at run-time?

Yes, by using the Application Api

More Information