Jump to content
  • 0

Icon inside input field


vinebath

Question

2 answers to this question

Recommended Posts

  • 0

Hi @vinebath,

You can add a Glyph icon with the additional CSS styles and bootstrap library:

1.  Open "Search and Report Wizard - Configure Search Fields" screen, where should be at least one field. Create a Header and Footer element and two HTML blocks, where the HTML editor should be disabled. Please look at  the screenshot below to see the structure of the DataPage elements:

image.thumb.png.c68e9fd575aafee87e26fdf066e43f73.png

2. Move to the Header and put the following code there:

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">

<style>
.cbFormTextField {
	padding-left: 25px;
}

.inner-addon {
	position: relative;
}


/* style glyph */

.inner-addon .glyphicon {
	position: absolute;
	padding: 10px;
	pointer-events: none;
}

.glyphicon {
	top: 11px !important;
}


/* align glyph */

.left-addon .glyphicon {
	left: 95px;
}


/* add padding  */

.left-addon input {
	padding-left: 30px;
}
</style>

3. Put the following code into the first HTML block: 

<div class="inner-addon left-addon">
      <i class="glyphicon glyphicon-search"></i>

4. Put  the code below to the second HTML block:

</div>


5. The result is the following:

image.png.8df627157ff45afe28415bbc2b94151d.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...