Skip to content

Instantly share code, notes, and snippets.

@ceej989
Created October 1, 2014 20:56
Show Gist options
  • Save ceej989/c73803b2d96519a3c988 to your computer and use it in GitHub Desktop.
Save ceej989/c73803b2d96519a3c988 to your computer and use it in GitHub Desktop.
Styleme
<div id="EmployeePhoneField">
<!--#_
var encodedWphone = $htmlEncode(ctx.CurrentItem.Workphone);
var displayWphone = Srch.U.getSingleHHXMLNodeValue(hhProps, "workphone");
console.log(displayWphone);
if ($isEmptyString(displayWphone)) { displayWphone = encodedWphone }
_#-->
<div id="EmployeePhoneValue" class="ms-srch-ellipsis" title="_#= encodedWphone =#_">P: _#= displayWphone =#_ </div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment