javascript - 文本区域的占位符? (ExtJS)

标签 javascript extjs extjs3

文本区域有占位符吗? ( ExtJS )

最佳答案

Ext.form.TextArea 中有一个emptyText 配置选项.

文档:

The default text to place into an empty field (defaults to null). Note: that this value will be submitted to the server if this field is enabled and configured with a name.

Ext 4.2.2 的文档:

The default text to place into an empty field.

Note that normally this value will be submitted to the server if this field is enabled; to prevent this you can set the submitEmptyText option of Ext.form.Basic.submit to false.

Also note that if you use inputType: 'file', emptyText is not supported and should be avoided.

Note that for browsers that support it, setting this property will use the HTML 5 placeholder attribute, and for older browsers that don't support the HTML 5 placeholder attribute the value will be placed directly into the input element itself as the raw value. This means that older browsers will obfuscate the emptyText value for password input fields.

关于javascript - 文本区域的占位符? (ExtJS),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9033531/

相关文章:

javascript - utag.DB 是什么意思?

javascript - 使用 Jquery 或 AJAX 加载和更改同一 page.php 上的 content.php,而不是外部 page.php

javascript - 显示最后一个记录值,不是所有值都循环

javascript - 多选组合框和 tpl - 在 Ext JS 中标记选定条目的问题

javascript - Jquery,无法访问动态生成元素的CSS属性

javascript - AngularJS 到 Rails MassAssignmentSecurity::Error

javascript - 你知道一个前沿的 HTML5 利用、忽略遗留的 JavaScript 框架吗?

php - 获取服务器的 SPF 记录

javascript - ExtJS 包括 Ex.ux.ComboColumn

javascript - 拖放。拖动源不适用于 extjs 3.4。适用于 Extjs 3.0