Forge Documentation


This documentation is deprecated, and only kept here to support users of browser extension APIs. If you are using for iOS or Android, see

ui: Native UI enhancements

This module includes miscellaneous native UI enhancements. This currently consists of enhancement to date, time and datetime form elements on Android.


The ui module must be enabled in config.json

    "modules": {
        "ui": true



Platform: Android

This method can be used to enhance a specific or set of specific input elements, when called any input elements of type date, time, datetime or datetime-local matching the given selector will be updated to show a native date picker when the user taps on them. The value the user selects will be inserted into the input element so it can be treated as normal by other Javascript. The input element will also be disabled to prevent other user input into the field.

After the user selects a value from a picker the blur event will be triggered on the input element. This is the same behaviour as the native pickers built into iOS.

  • selector (string) -- Any input elements of type date, time or datetime matching this selector will be enhanced.


Platform: Android

This method will enhance all appropriate input elements currently in the DOM.