
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2018 04:43 AM
Hello Team,
I want to reduce width of <sn-record-picker> directive. How it is possible? Please provide any solution.
Thanks.
Solved! Go to Solution.
- Labels:
-
Service Portal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2018 09:39 PM
auto is the default value for width, so you haven't changed anything.
You need to use something like
width: 50%
or
width: 200px;
etc.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2018 02:46 AM
Have you tried applying any ng-classes from boostrap to your sn-record-picker directive?
Have you tried anything to change this?
If so, and it doesn't work, what specifically have you tried and how has it failed?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2018 10:59 PM
The width of <sn-record-picker> is just 100%. So I have controlled the width before by wrapping it in a div and setting the width of the div.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2018 11:07 PM
Hi,
I tried like this
<div class="caller">
<sn-record-picker field="caller" table="'incident'" display-field="'name'"></sn-record-picker>
</div>
css:
.caller
{
width:auto;
}
Please let me know if any modification need for the above code.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2018 09:39 PM
auto is the default value for width, so you haven't changed anything.
You need to use something like
width: 50%
or
width: 200px;
etc.