contao-thememanager/ctm-placeholder-label

There is no license information available for the latest version (1.2.1) of this package.

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

1.2.1 2024-05-23 12:41 UTC

This package is auto-updated.

Last update: 2024-10-23 13:26:33 UTC


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

  1. ...
  2. _theme.css (theme manager core)
  3. _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'
    ]
}