contao-thememanager / ctm-placeholder-label
Placeholder label integration for Contao Theme-Manager
Fund package maintenance!
oveleon
Installs: 276
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Language:SCSS
Type:symfony-bundle
Requires
- php: ^8.1
- contao-thememanager/core: ^2.0.17
- contao/core-bundle: ^4.13 || ^5.2
Requires (Dev)
- contao/manager-plugin: ^2.3.1
Conflicts
- contao/core: *
- contao/manager-plugin: <2.0 || >=3.0
README
Description
This extension simulates labels as a placeholder and animates them on their active or filled state. The thememanager configuration will be extended by 4 more fields (see settings)
After compiling your theme, make sure to add:
- _placeholderlabel.css to your Layout stylesheet settings
- js_ctm_placeholderlabel to your javascript template
Make sure to follow following order of css files in your layout
- ...
- _theme.css (theme manager core)
- _placeholderlabel.css
Settings
ThemeManager
JavaScript
By modifying the file js_ctm_placeholderlabel, you can modify and override the placeholder label init.
Options
{ selector: 'form', // Parse selector excludeClass: 'pl-none', // Using this class on a <form> will disable plabel include: [ // Considered fields '.pl-parent input', '.pl-parent select', '.pl-parent textarea' ] }