<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Initializing custom color picker object in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Initializing-custom-color-picker-object/m-p/1590018#M10724</link>
    <description>&lt;P&gt;I think the problem is that the example I took my code from specifies a default value of "ff5866" when in fact it should have been "#ff5866".&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2019 13:12:58 GMT</pubDate>
    <dc:creator>stascher</dc:creator>
    <dc:date>2019-06-10T13:12:58Z</dc:date>
    <item>
      <title>Initializing custom color picker object</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Initializing-custom-color-picker-object/m-p/1589577#M10718</link>
      <description>&lt;P&gt;I'm adding the ability to select a custom color for each measure in my extension.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far everything is working.. I see the color picker, I can select a color and that color is reported in the hypercube.&lt;/P&gt;&lt;P&gt;The problem I'm having is setting the initial value in the picker itself, it always displays as blank. Here's my code:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;					measures: {
						uses: "measures",
						min: 1,
						max: 6,
						type:"items",
						items: {
							VisualType: {
								type: "string",
								component:"dropdown",
								label: "Visual Type",
								ref: "qDef.visualType",
								options: [{
									value: "BAR",
									label: "Bar"
								},{
									value: "LINE",
									label: "Line"
								},{
									value: "POINT",
									label: "Point"
								}],
								defaultValue: "BAR"
							},
							VisualColor: {
								type:"object",
								component:"color-picker",
								label:"Visual Color",
								ref: "qDef.visualColor",
								defaultValue: {
									color: "ff5866",
									index: "-1"
								}
							}
						},
						paint: function($element,layout) {
							$element.css("background-color",layout.qDef.visualColor);
						}
					},&lt;/LI-CODE&gt;&lt;P&gt;Thanks in advance for any help,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Initializing-custom-color-picker-object/m-p/1589577#M10718</guid>
      <dc:creator>stascher</dc:creator>
      <dc:date>2024-11-16T05:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Initializing custom color picker object</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Initializing-custom-color-picker-object/m-p/1590018#M10724</link>
      <description>&lt;P&gt;I think the problem is that the example I took my code from specifies a default value of "ff5866" when in fact it should have been "#ff5866".&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 13:12:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Initializing-custom-color-picker-object/m-p/1590018#M10724</guid>
      <dc:creator>stascher</dc:creator>
      <dc:date>2019-06-10T13:12:58Z</dc:date>
    </item>
  </channel>
</rss>

