
- استخدام
- المحددات
نسخ
اسأل الذكاء الاصطناعي
import { AppTooltip } from "@/ui/display/tooltip/AppTooltip";
export const MyComponent = () => {
return (
<>
<p id="hoverText" style={{ display: "inline-block" }}>
Customer Insights
</p>
<AppTooltip
className
anchorSelect="#hoverText"
content="Explore customer behavior and preferences"
delayHide={0}
offset={6}
noArrow={false}
isOpen={true}
place="bottom"
positionStrategy="absolute"
/>
</>
);
};
| المحددات | النوع | الوصف |
|---|---|---|
| اسم الفئة | نص | فئة CSS اختيارية للتنسيق الإضافي |
| اختيار الربط | محدد CSS | Selector for the tooltip anchor (the element that triggers the tooltip) |
| المحتوى | نص | The content you want to display within the tooltip |
| تأخير الإخفاء | رقم | The delay in seconds before hiding the tooltip after the cursor leaves the anchor |
| الإزاحة | رقم | The offset in pixels for positioning the tooltip |
| بدون سهم | قيمة منطقية | إذا كانت القيمة صحيح, سيتم إخفاء السهم في المربط التنبيهي |
| مفتوح | قيمة منطقية | إذا كانت القيمة صحيح, يكون المربط التنبيهي مفتوحًا افتراضيًا |
| المكان | PlacesType string from react-tooltip | يحدد موضع المربط التنبيهي. Values include bottom, left, right, top, top-start, top-end, right-start, right-end, bottom-start, bottom-end, left-start, and left-end |
| استراتيجية الوضعية | نص PositionStrategy من react-tooltip | استراتيجية وضعية للمربط التنبيهي. Has two values: absolute and fixed |
Overflowing Text with Tooltip
يعالج النص الزائد ويعرض مربط تنبيهي عند فيضان النص.- استخدام
- الخصائص
نسخ
اسأل الذكاء الاصطناعي
import { OverflowingTextWithTooltip } from 'twenty-ui/display';
export const MyComponent = () => {
const crmTaskDescription =
'Follow up with client regarding their recent product inquiry. Discuss pricing options, address any concerns, and provide additional product information. Record the details of the conversation in the CRM for future reference.';
return <OverflowingTextWithTooltip text={crmTaskDescription} />;
};
| الخصائص | النوع | الوصف |
|---|---|---|
| نص | string | The content you want to display in the overflowing text area |