You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"code": "``` js\nconst win = Ti.UI.createWindow({\n\tbackgroundColor: 'gray',\n\tlayout: 'vertical'\n});\nconst lbl_a = createLink();\nconst lbl_b = createLink();\n\ncolorLink(lbl_b);\n\nwin.add([lbl_a, lbl_b]);\nwin.open();\n\nfunction createLink() {\n\tconst label = Ti.UI.createLabel({\n\t\ttop: 20,\n\t\tattributedString: Ti.UI.createAttributedString({\n\t\t\ttext: 'Check out Titanium SDK',\n\t\t\tattributes: [{\n\t\t\t\ttype: Ti.UI.ATTRIBUTE_LINK,\n\t\t\t\tvalue: 'https://titaniumsdk.com',\n\t\t\t\trange: [10, 12]\n\t\t\t}]\n\t\t})\n\t});\n\n\tlabel.addEventListener('link', e => {\n\t\tTi.Platform.openURL(e.url);\n\t});\n\n\treturn label;\n}\n\nfunction colorLink(lbl) {\n\tconst attributedString = lbl.attributedString;\n\tconst textColor = 'purple';\n\tconst underlineColor = 'yellow';\n\n\tfor (const attribute of attributedString.attributes) {\n\t\tif (attribute.type === Ti.UI.ATTRIBUTE_LINK) {\n\n\t\t\t// Set new link color.\n\t\t\tattributedString.addAttribute({\n\t\t\t\ttype: Ti.UI.ATTRIBUTE_FOREGROUND_COLOR,\n\t\t\t\tvalue: textColor,\n\t\t\t\trange: attribute.range\n\t\t\t});\n\n\t\t\t// Set new underline color.\n\t\t\tattributedString.addAttribute({\n\t\t\t\ttype: Ti.UI.ATTRIBUTE_UNDERLINE_COLOR,\n\t\t\t\tvalue: underlineColor,\n\t\t\t\trange: attribute.range\n\t\t\t});\n\t\t}\n\t}\n}\n```\n"
113802
113806
}
113803
113807
],
113804
113808
"methods": [
@@ -191854,6 +191858,21 @@
191854
191858
],
191855
191859
"availability": "creation"
191856
191860
},
191861
+
{
191862
+
"name": "selectedBackgroundColor",
191863
+
"summary": "Background color of the selected tab indicator.",
191864
+
"platforms": [
191865
+
{
191866
+
"since": "8.0.0",
191867
+
"name": "android"
191868
+
}
191869
+
],
191870
+
"type": [
191871
+
"String",
191872
+
"Titanium.UI.Color"
191873
+
],
191874
+
"availability": "creation"
191875
+
},
191857
191876
{
191858
191877
"name": "selectedTextColor",
191859
191878
"summary": "Color of the selected text",
@@ -191884,7 +191903,7 @@
191884
191903
{
191885
191904
"name": "style",
191886
191905
"summary": "Style of the tabbed bar.",
191887
-
"description": "Specify one of the constants:\nFor iOS:\n[Titanium.UI.iOS.SystemButtonStyle](Titanium.UI.iOS.SystemButtonStyle),\neither `PLAIN`, `BORDERED`, or `BAR`.\n\nThe `BAR` style specifies a more compact style and allows the bar's background\ncolor or gradient to show through.\nFor Android:\n[Titanium.UI.TABS_STYLE_*]\nIn Android [style](Titanium.UI.TabbedBar.style) is only supported in the creation dictionary\nof the proxy.\n",
191906
+
"description": "Specify one of the constants:\nFor iOS:\n[Titanium.UI.iOS.SystemButtonStyle](Titanium.UI.iOS.SystemButtonStyle),\neither `PLAIN`, `BORDERED`, or `BAR`.\n\nThe `BAR` style specifies a more compact style and allows the bar's background\ncolor or gradient to show through.\n\nFor Android use [Titanium.UI.TABS_STYLE_DEFAULT](Titanium.UI.TABS_STYLE_DEFAULT) or\n[Titanium.UI.TABS_STYLE_BOTTOM_NAVIGATION](Titanium.UI.TABS_STYLE_BOTTOM_NAVIGATION) and\nit is only supported in the creation dictionary of the proxy.\n",
191888
191907
"platforms": [
191889
191908
{
191890
191909
"since": "8.0.0",
@@ -215883,6 +215902,10 @@
215883
215902
"summary": "Use with <Attribute.type> to change the color of the horizontal line.\n",
215884
215903
"description": "Use a color name or hex value for <Attribute.value>.\n\nSee <Attribute> for more information.\n",
0 commit comments