Textfield PlaceHolder as Icon
How do I make an textfield placeholder as icon?
A small demo showing how to make placeholder text display with icon instead of text. What is a textfield placeholder as icon? How do you make a textfield placeholder as icon? This script and codes were developed by Shayne Trosdahl on 18 November 2022, Friday.
Textfield PlaceHolder as Icon - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Textfield PlaceHolder as Icon</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <script type="text/javascript" src="http://cdn.sencha.io/touch/sencha-touch-2.4.0/sencha-touch-all.js"></script>
<link href="http://cdn.sencha.io/touch/sencha-touch-2.4.0/resources/css/sencha-touch.css" rel="stylesheet" type="text/css"> <script src="js/index.js"></script>
</body>
</html>
Textfield PlaceHolder as Icon - Script Codes CSS Codes
.x-field-with-icon-placeholder input::-webkit-input-placeholder, .x-field-with-icon-placeholder isindex::-webkit-input-placeholder { font-family: 'Pictos'; /* OTHER CSS/SCSS STYLES IF NEEDED */
}
Textfield PlaceHolder as Icon - Script Codes JS Codes
Ext.setup({ onReady: function () { Ext.Viewport.add({ xtype: 'container', layout: { type:'hbox', pack: 'center', align: 'center' }, defaults: { margin: '2em' }, items: [{ xtype: 'textfield', ui: 'with-icon-placeholder', // Keeps the icon placeholder specific to textfields with this class placeHolder: 'a', label: 'Label' }] }); }
});
Developer | Shayne Trosdahl |
Username | Trozdol |
Uploaded | November 18, 2022 |
Rating | 3 |
Size | 2,334 Kb |
Views | 18,216 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
SVG Logo Animation | 2,807 Kb |
1em Sizing Side-by-Side Comparison | 2,397 Kb |
Sencha Touch 2.3.1 Basic Grid Example | 2,770 Kb |
Viewport Text Width CSS | 1,720 Kb |
Sencha Touch Button Icon Size CSS | 2,234 Kb |
Sencha Touch Grid Text Wrap Test | 2,312 Kb |
Sencha Touch Bar Chart Add ons | 2,308 Kb |
CSS Size Value Comparison of 10 | 2,279 Kb |
Push to Nested Array | 1,374 Kb |
List Item | 3,241 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Improve | Gavra | 1,652 Kb |
Canvas Background Effect | Sonick | 3,513 Kb |
Mapbox Directions with geolocation tracking | Pollardld | 5,827 Kb |
Simple checkbox style | Vncnz | 2,628 Kb |
Donald Trump - The New Yorker | Agbales | 2,502 Kb |
Atom | Bhlaird | 1,932 Kb |
Improved Page Flipping Effect | Usaphp | 5,201 Kb |
Old calculator | Gnarfugh | 2,815 Kb |
Halo 5 REQ Guide Bookmarklet | Cwacht | 3,993 Kb |
WRENCH - STAFF | Lolita-adams | 1,608 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!