
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@phila/phila-ui-dropdown
Advanced tools
When using the innerLabel
option (default), the placeholder
prop should be used as the Dropdown label.
<dropdown
v-model="myValue"
placeholder="My Label"
/>
If a label is also provided, then the label will be displayed once the user clicks on the field.
<dropdown
v-model="myValue"
placeholder="My Label"
label="My alternative label"
/>
When NOT using the innerLabel
option (default), the placeholder
and label
props will function independently and both should be provided.
<dropdown
v-model="myValue"
placeholder="My placeholder"
label="My Label"
:inner-label="false"
/>
Use the desc
prop or slot to provide extra information about the Dropdown.
<dropdown desc="Extra information about this field" />
Use the slot when the description contains html that needs to be rendered. For instance, when adding a link to the description.
<dropdown>
<template slot="desc">
Extra information about this field. <a href="#">Learn more</a>.
</template>
</dropdown>
The icon prop expects font-awesome icon classes.
<dropdown icon="fa fa-user-circle" />
Use icons sparingly (eg. Indicating that the input has a different function).
Options can be provided as an Array when the Dropdown label and value are the same.
<dropdown
v-model="myValues"
label="My Label"
:options="options"
/>
options: ["Option 1", "Option 2", "Option 3"];
And options can be provided as an Object when the Dropdown label and value are NOT the same.
options: {
'option-1': 'Option 1',
'option-2': 'Option 2',
'option-3': 'Option 3',
}
An Array of Objects can also be used, in which case the text-key
and value-key
props need to be provided to indicate the text to be displayed and value to be captured.
<dropdown
v-model="myValues"
label="My Label"
text-key="key1"
value-key="key2"
/>
options: [
{
key1: "My text 1",
key2: "my-value-1",
},
{
key1: "My text 2",
key2: "my-value-2",
},
];
Version 2.0.5 and up.
<dropdown :optgroup="true" />
When optgroup is true, wrap the options in an object where the object key is the group name.
options: {
"Group 1": [
"Group 1 - Option 1",
"Group 1 - Option 2",
"Group 1 - Option 3",
],
"Group 2": [
"Group 2 - Option 1",
"Group 2 - Option 2",
"Group 2 - Option 3",
],
},
To display an error provide a String with the error, or an Array of errors. Only the first error in the array is displayed.
<dropdown errors="This field is required" />
This component supports VeeValidate errors. Learn how to validate with the VeeValidade plugin.
FAQs
Unknown package
We found that @phila/phila-ui-dropdown demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.