WebInputProperties

Since: BlackBerry 10.3.0

#include <bb/cascades/WebInputProperties>

Specifies input properties for WebView controls or WebPage objects.

This is a grouped property that's used to specify input properties for the WebView or WebPage. The impact and behavior of these flags are dependent on the input handler and are subject to change, and could behave differently on different devices. They should be considered hints.

In this example, the virtual keyboard is explicitly disabled for the control.

 WebView {
     input {
         flags: TextInputFlag.VirtualKeyboardOff
     }
 }

And here's the same example in C++:

 WebView* pWebView = ...;

 pWebView->input()->setFlags(TextInputFlag::VirtualKeyboardOff);


Overview

QML properties

flags: bb::cascades::TextInputFlag::Types

QML signals

Properties Index

bb::cascades::TextInputFlag::Typesflags

Public Functions Index

virtual ~WebInputProperties ()
bb::cascades::TextInputFlag::Typesflags () const
Q_SLOT voidresetFlags ()
Q_SLOT voidsetFlags (bb::cascades::TextInputFlag::Types flags)

Signals Index

voidflagsChanged (bb::cascades::TextInputFlag::Types newFlags)

Properties

bb::cascades::TextInputFlag::Types flags

Specifies text input feature flags.

Note:

Currently, only bb::cascades::TextInputFlag::Default, bb::cascades::TextInputFlag::VirtualKeyboard and bb::cascades::TextInputFlag::VirtualKeyboardOff are supported with WebView or WebPage.

See also:

bb::cascades::TextInputFlag::Types

Since:

BlackBerry 10.3.0

Public Functions

virtual~WebInputProperties ()

Destructor.

bb::cascades::TextInputFlag::Types flags ()

Returns the text input flags.

The input flags are a bit field that you can use to turn on and off input features.

Return:

The flags bit field.

See also:

TextInputFlag::Types

Since:

BlackBerry 10.3.0

Q_SLOT void resetFlags ()

Resets the input flags to the default state.

The default state is TextInputFlag::Default.

Since:

BlackBerry 10.3.0

Q_SLOT void setFlags (
  • bb::cascades::TextInputFlag::Typesflags)

Sets the text input flags.

The input flags are a bit field that you can use to turn on and off input features. This function will emit the flagsChanged() signal.

Here's an example of how to set text input flags:

 pWebView->input()->setFlags(TextInputFlag::VirtualKeyboardOff);
Parameters
flags

The new text input flags.

See also:

TextInputFlag::Types

Since:

BlackBerry 10.3.0

Signals

void flagsChanged (
  • bb::cascades::TextInputFlag::TypesnewFlags)

Emitted when the input flags field has changed.

Parameters
newFlags

The new flag bit field.

Since:

BlackBerry 10.3.0

Last modified: 2014-09-30



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus