18.0.1 • Published 11 months ago

systelab-virtual-keyboard v18.0.1

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

SystelabVirtualKeyboard

Systelab Virtual Keyboard is a on-screen keyboard focused on touch devices.

Using the directive

Before use the directive you have to import the module into your application.

NgModule({
  imports: [
    ...,
    SystelabVirtualKeyboardModule.forRoot(config),
  ]
})

Where config is an object with type SystelabVirtualKeyboardConfig. See SystelabVirtualKeyboardConfig for details

Then the virtual keyboard can be enabled for inputs or textareas. To enable it the attribute vkEnabled can be used into the desire HTML element. It can be binding dynamically in the same way vkEnabled="vkEnabledVariable"

<input class="input" type="number" placeholder="Numeric input default layout" vkEnabled vkFixedBottom [vkConfig]="vkConfig">

Directive options

The default behaviour can be changed through some attributes:

NameTypeDefaultDescription
vkEnabledbooleantrueEnable the virtual keyboard for the element. If the property exists, the default value is true; if not, is false
vkFixedBottomboolestrueFix the virtual keyboard to the bottom of the page. If the property exists, the default value is true; if not, is false
vkConfigSystelabVirtualKeyboardConfigConfiguration object that overrides some default behaviours. See SystelabVirtualKeyboardConfig for details

Configuration object

The configuration params are describe into the interface SystelabVirtualKeyboardConfig

NameTypeDefaultDescription
layoutSystelabVirtualKeyboardLayoutsUsually the virtual keyboard select the layout between default or numeric depending on the input type. But with the config object you can override this behaviour and force the desired layout. The available layouts are described in the enum SystelabVirtualKeyboardLayouts
inputMethodSystelabVirtualKeyboardInputMethodsThe method detected for the keyboard to click or touch the keys
showButtonbooleanfalseShow or hide the button for showing the keyboard
showOnMouseClickbooleanfalseShows virtual keyboard upon mouse click on input field
17.3.0

12 months ago

17.2.0

1 year ago

17.1.0

1 year ago

17.0.0

1 year ago

0.0.3

1 year ago

18.0.1

11 months ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.6

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago