placeholder

Default text (placeholder) in InputText component

↘锁芯ラ 提交于 2019-12-04 03:38:35
问题 I want to display a default Informative text in JSF/Primefaces inputText component. This text should disappear when user clicks on Text field. Appear when he clicks outside without typing anything. If user submits the form without any value, this default value should not be set to Bean's Property. I'm aware that setting the default value to BeanProperty in ManagedBean will work,but I don't want that. Please suggest any JQuery tweaks,If possible. Redirect me to right Question if this question

Modernizr just for one quick check?

微笑、不失礼 提交于 2019-12-04 02:48:44
I want to check if the browser who's running my page is capable of handling the 'html 5 placeholder' I know I can add the following javascript check: !Modernizr.input.placeholder but is it worth to import a library just for one check ? also how does modernizr do that for me (i mean how is it implemented under the cover) ? If you want to check for placeholder support, then all you need to do is; var placeholderSupport = "placeholder" in document.createElement("input"); And to answer your other question; no , there is absolutely no point including the whole Modernizr library for 1 line of JS

Styling placeholder on Firefox

北城以北 提交于 2019-12-04 01:45:00
问题 What I want to do is to make a placeholder appear on the center 50% top and 50% left . It appears to be good in Chrome but not on Firefox 23. I have an example here. and my styles here: textarea::-moz-placeholder { position: relative; font-size: 16px; font-style: italic; color: #ABABAB; top: 50%; text-align: center; } textarea::-webkit-input-placeholder { position: relative; font-size: 16px; font-style: italic; color: #ABABAB; top: 50%; text-align: center; } I would appreciate if anyone could

Add Placeholder to UITextField, how to set the placeholder text programmatically in swift?

你。 提交于 2019-12-03 23:08:10
I'm pulling out a phone number from a database, and when the user begins editing in the text field to change that phone number I'd like to use the number I currently have in the database as the placeholder. Since this information changes with each user, how can I set it programmatically in swift? You need to get the phone number from your database first (convert them to String), then you set placeholder of your textField to that String, like so textField.placeholder = phoneNumberString Swift 3 If your textField has text, you need to first set text property to nil, then set placeholder text:

使用 vue-i18n 切换中英文

我与影子孤独终老i 提交于 2019-12-03 22:52:20
vue-i18n 仓库地址:https://github.com/kazupon/vue-i18n 兼容性: 支持 Vue.js 2.x 以上版本 安装方法:(此处只演示 npm) npm install vue-i18n 使用方法: 1、在 main.js 中引入 vue-i18n (前提是要先引入 vue) import VueI18n from 'vue-i18n' Vue.use(VueI18n) 2、准备本地的翻译信息 const messages = { zh: { message: { hello: '好好学习,天天向上!' } }, en: { message: { hello: 'good good study, day day up!' } } } 3、创建带有选项的 VueI18n 实例 const i18n = new VueI18n({ locale: 'en', // 语言标识 messages }) 4、把 i18n 挂载到 vue 根实例上 const app = new Vue({ router, i18n, ...App }).$mount('#app') 5、在 HTML 模板中使用 <div id="app"> <h1 style="font-size: 16px; text-align: center;">{{ $t("message

Paste a chart from Excel to a specific placeholder in a specific layout. Powepoint 2010

十年热恋 提交于 2019-12-03 20:25:12
I need to paste multiple charts from excel to powerpoint. I found some excellent VBA code (mainly on Jon Peltier's site). Now my powerpoint template has a number of layouts (e.g. with 1 chart occupying most of the slides or 1 chart and one text box in a slide, etc etc). What I want is the chart to become part of the slide layout so that if I reformat the slide - e.g. I change the layout as in the example given above - the chart will move accordingly. Currently I am able to paste in the spot where the placeholder is, with right size and everything, but it is not IN the placeholder, it's ON the

form表单

笑着哭i 提交于 2019-12-03 16:46:35
<el-form :model="ruleForm" :rules="ruleFormRules" ref="ruleForm" inline :show-message='false' > <div> <el-form-item label="医疗单位" prop="UnitIdList" label-width="60px" > <el-select size="small" class="el-select-multi-sj" v-model="ruleForm.UnitIdList" placeholder="请选择活动区域" multiple style="width:170px" @visible-change="ChangeUnit" > <el-option v-for="item in userUnits" :key="item.UnitId" :label="item.UnitName" :value="item.UnitId" > </el-option> </el-select> </el-form-item> <el-form-item label="结算类型" prop="AccountTypeList" label-width="60px" > <el-select size="small" class="el-select-multi-sj" v

Text input placeholders not displaying in IE and Firefox

早过忘川 提交于 2019-12-03 15:13:51
问题 My text input placeholders refuse to display in IE and Firefox despite having used the -moz-placeholder attribute. This can be viewed on the contact page here if you are using Firefox or IE. Can someone please help I have been trying to figure this out for weeks. A sample of my code is below: input::-moz-placeholder, textarea::-moz-placeholder { color: #aaa; font-size: 18px; } input:-ms-input-placeholder, textarea::-ms-input-placeholder { color: #aaa; font-size: 18px; } input::-webkit-input

How to make a scrollbar placeholder

亡梦爱人 提交于 2019-12-03 14:24:11
My problem is that the browser windows vertical scrollbar that is removed by for example overflow:hidden; will make the page jump, when it reappears later. I use jQuery to remove the scroll option from the visitor, while a script is running and scrolling the page to a specific point, and then to make it reappear again afterwards: www.nebulafilm.dk/index.html?content Can I make a placeholder for the scrollbar, when it is not present, so it won't jump back? Or is it possible to "disable" it and have it "greyed out"? I cannot find any solutions by searching. I have found something similar here:

Git log pretty format, newline after placeholder if non-empty

早过忘川 提交于 2019-12-03 14:16:45
I've got a git alias for a log using the pretty format: lg = log -10 --graph --abbrev-commit --pretty=format:'%C(auto)%d%Creset%n %C(bold yellow)%h%Creset - %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' Which gives the following: I can't seem to find a way to make a new line after the reference names only if the placeholder is non-empty. The pretty formats wiki page has operators to add or remove (+ or -) the newline coming before the placeholder but not after. This is not supported natively by Git: you would have to process/parse the output to get the right result) But this could also be the