Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Turn off browser spell check on all TextItems

    We'd like to have the setBrowserSpellCheck() attribute set to false by default and only enable it on selected fields. Since we have been using the standard SmartGWT classes and not our own subclasses, how can we set this attribute globally.

    I seem to remember a recent feature addition that lets you set default UI component attributes globally but I can't seem to find the details.

    #2
    The feature you're thinking of is probably 'setDefaultProperties' on the Canvas class.
    We don't currently have an equivalent for FormItems, though we may add one in the future.
    For now this is easiest to do with a snippet of JSNI:

    Code:
    $wnd.isc.TextItem.addProperties({
        browserSpellCheck:false
    });

    Comment

    Working...
    X