ublaboo / controls
Extension for Nette Framework: Controls: that has not translatable content (radiolist, selectbox), custom label text input
Installs: 60 088
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 4
Open Issues: 3
Requires
- nette/di: ^2.4|^2.3
- nette/forms: ^2.4|^2.3
Requires (Dev)
- mockery/mockery: ~0.9
- nette/tester: ~1.6.1
- tracy/tracy: ~2.3.0
This package is not auto-updated.
Last update: 2024-12-19 01:18:25 UTC
README
controls
Extension for Nette Framework: Some of form controls modified (no-translate select box options, checkbox list, changeable label text input, etc)
1, Register extension
extensions: controls: Ublaboo\Controls\DI\ExtensionsExtension
NotTranslatableRadioList
This control allows translating input names but not datio titles
$form->addNotTranslatableRadioList('Name', $values);
NotTranslatableSelectBox
The same, but with Selet and it's options
$form->addNotTranslatableSelect('Name', $options);
TextInputCustomLabel
You know, when you want to change input's label for example in form factory, the label stays unchanged when rendering form in template. This can be changed by using TextInputCustomLabel
:
$form->addTextCustomLabel('name', 'Name');