getUserImage
size
Max width
Usage
import { getUserImage } from "@olenbetong/appframe-core";
import { useCurrentRow } from "@olenbetong/appframe-react";
function ProfilePicture() {
let record = useCurrentRow(dsMyDataObjectWithEmployee);
return (
<img
alt={record.FullName}
src={getUserImage({
primKey: record.EmployeeRef,
login: record.PersonID,
hash: record.ImageHash,
size: "md",
})}
/>
);
}
function ProfilePicture() {
let record = useCurrentRow(dsMyDataObjectWithEmployee);
return (
<img
alt={record.FullName}
src={getUserImage(
record.EmployeeRef,
record.PersonID,
record.ImageHash,
"md"
)}
/>
);
}API
Last updated
Was this helpful?