定制 contao-thememanager/ctm-placeholder-label 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

contao-thememanager/ctm-placeholder-label

最新稳定版本:1.2.4

Composer 安装命令:

composer require contao-thememanager/ctm-placeholder-label

包简介

Placeholder label integration for Contao Theme-Manager

README 文档

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

Placeholder Label
Option Description
$pl-input-top-offset Top offset (+ padding) of the input for form input fields.
$pl-textarea-top-offset Top offset (+ padding) of the input for textarea - elements.
$pl-label-filled-top-offset Top offset of the label if the form field has been filled
$pl-label-filled-font-size Font size of the label if the form field has been filled

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'
    ]
}

统计信息

  • 总下载量: 404
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: SCSS

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-07-07