A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://js.devexpress.com/Vue/Documentation/ApiReference/Common/Object_Structures/device/ below:

Vue Common - Object Structures - device

The device object defines the device on which the application is running.

This object is returned by the DevExpress.devices.current() and DevExpress.devices.real() methods to provide information on the device on which the application is currently running. Use the fields of this object to get the required information on the device.

You can emulate as if the application runs on another device. For this purpose, use the DevExpress.devices.current() function passing the required device object as a parameter.

The information on the device on which the application is currently running is used to provide an appropriate look and feel for the application. In particular, the styles that are most appropriate for the current device will be applied.

Indicates whether or not the device platform is Android.

Specifies the type of the device on which the application is running.

Accepted Values: 'phone' | 'tablet' | 'desktop'

The device type can influence how UI components are displayed and behave in the application.

Indicates whether or not the device platform is generic, which means that the application will look and behave according to a generic "light" or "dark" theme.

Specifies a performance grade of the current device.

Accepted Values: 'A' | 'B' | 'C'

The current device can have one of the grades of its performance.

Use the grade property when specifying the device on which a particular animation can be used.

DevExpress.animationPresets.registerPreset("my-animation", {
    animation: 'fade',
    device: { grade: 'A' },
});

DevExpress.animationPresets.registerPreset("my-animation", {
    animation: 'none',
    device: { grade: 'C' }
});

In the code above, when the 'my-animation' animation preset is requested, the 'fade' animation will be performed if the current device has the 'A' category and animation will not be performed at all if the current device has the 'C' category.

Indicates whether or not the device platform is iOS.

Indicates whether or not the device type is 'phone'.

Specifies the platform of the device on which the application is running.

Accepted Values: 'android' | 'ios' | 'generic'

Depending on the device platform, a corresponding theme is applied to the application. The device platform is set to 'generic' when none of the platforms ('android' or 'ios') are identified. In this instance, a generic "light" or "dark" theme is applied. You can also set the 'generic' platform manually to provide a unique look and feel for the application on any device. For this purpose, use the DevExpress.devices.current(device) function, passing the device object with the platform field set to 'generic' as a parameter.

Indicates whether or not the device type is 'tablet'.

Specifies an array with the major and minor versions of the device platform.

This property accepts an array of numbers, e.g. [8,1], which means that the platform version is "8.1".

The version of the device platform is important for native styling of the application according to the guidelines provided for each platform version.

Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4