ui.Label.setUrl
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
نشانی اینترنتی برچسب را تنظیم میکند که باعث میشود آن را به عنوان پیوند ارائه کند.
این برچسب را برمی گرداند.
استفاده | برمی گرداند | Label. setUrl (targetUrl) | ui.Label |
استدلال | تایپ کنید | جزئیات | این: ui.label | ui.Label | نمونه ui.Label. |
targetUrl | رشته | آدرس هایپرلینک. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003e\u003ccode\u003eLabel.setUrl()\u003c/code\u003e configures a label to act as a hyperlink by setting its URL.\u003c/p\u003e\n"],["\u003cp\u003eIt takes the target URL as an argument and applies it to the specified ui.Label instance.\u003c/p\u003e\n"],["\u003cp\u003eCalling \u003ccode\u003esetUrl()\u003c/code\u003e also returns the ui.Label object, allowing for method chaining.\u003c/p\u003e\n"]]],[],null,["# ui.Label.setUrl\n\n\u003cbr /\u003e\n\nSets the url of the label, which will cause it to render as a link.\n\n\u003cbr /\u003e\n\nReturns this label.\n\n| Usage | Returns |\n|---------------------------|----------|\n| Label.setUrl`(targetUrl)` | ui.Label |\n\n| Argument | Type | Details |\n|------------------|----------|---------------------------|\n| this: `ui.label` | ui.Label | The ui.Label instance. |\n| `targetUrl` | String | The url of the hyperlink. |"]]