sn-record-picker

Bhagya Lakshmi
Mega Guru

Hello Team,

I want to reduce width of <sn-record-picker> directive. How it is possible? Please provide any solution.

Thanks.

1 ACCEPTED SOLUTION

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.

View solution in original post

5 REPLIES 5

Jace Benson
Mega Sage

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?

https://blog.jacebenson.com/getting_help

Geoffrey2
ServiceNow Employee
ServiceNow Employee

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.

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.

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.