Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@domoinc/dropdown
Advanced tools
Type: string
Default: "Dropdown"
Name of chart for Reporting.
Type: boolean
Default: false
Turn on domo Scroll?
Type: string
Default: "200px"
Max Height of the dropdown
Type: boolean
Default: false
If true, it signals to the widget that it is running on a mobile device. Should be called before draw and then NEVER changed.
Type: function
Default: "function () {}"
Function that runs on every list element
Type: number
Default: 0
Padding for the list icons
Type: number
Default: 0
Selected Index
Type: string
Default: "ConfigValue"
selectedValue
Type: boolean
Default: true
Flag for turning off data validation
Type: string
Default: "medium"
Size of the dropdown.
Type: boolean
Default: true
Flag for turning off the mimic of illustrator's scale functionality
Type: boolean
Default: true
Show/Hide the dropdown.
Type: string
Default: "250px"
Width of the dropdown
Type: string
Default validate:
function (d) { return this.accessor(d) !== "undefined";}
Default accessor:
function (line) { return String(line[0]); }
Type: string
Default validate:
function (d) { return this.accessor(d) !== "undefined";}
Default accessor:
function (line) { return String(line[1]); }
//Setup some fake data
var data = [
['1'],
['Domo', 'value', 'otherfield', 'bunchafields', 'onthisguy'],
['Widgetasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf'],
['Test'],
['Test'],
['Test'],
['Test'],
['Test'],
['Test'],
['Test'],
['Test'],
['End'],
];
//Initialze the widget
var chart = d3.select("#vis").append('div')
.style({
'position':'absolute',
'top':'100px',
'left':'100px'
})
.chart("Dropdown")
.c({
width: '250px',
// height: '250px',
'size': 'large',
domoScroll: true
})
// .selectedIndex(1);
chart.c('listIconFunction', function(iconDiv, d, i) {
iconDiv.append('img')
.attr({
src: 'https://avatars0.githubusercontent.com/u/7373982?v=3&s=40'
})
.style({
height: '16px',
width: '16px',
})
})
//Render the chart with data
chart.draw(data);
// setTimeout(function() {
// chart.c('domoScroll', false)
// chart.draw(data)
// }, 2000)
chart.on('click', function(d, i) {
this.toggleVisibility();
console.log(d)
});
//******************************************************************
//This is the code that allows you to put icons on the list items
//******************************************************************
d3.select('#vis')
.append('div')
.style({
height: '100px',
width: '100px',
'background': '#BADA55',
'position': 'absolute',
'left': '400px'
})
.on('click', function() {
chart.toggleVisibility();
//chart.trigger('visibility');
});
FAQs
Dropdown - Domo Widget
The npm package @domoinc/dropdown receives a total of 7 weekly downloads. As such, @domoinc/dropdown popularity was classified as not popular.
We found that @domoinc/dropdown demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 17 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.