Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
sdk-select
Advanced tools
Simple to use (Angular) select option.
Using NPM:
npm install --save sdk-select
To configure the sdk-select
for your application, add the following lines to your app.module.ts file:
import { SDKSelectModule } from 'sdk-select';
@NgModule({
imports: [
SDKSelectModule
]
})
export class AppModule { }
<sdk-select></sdk-select>
List of properties:
// Inputs:
label: any; // Text to display to the left/top of dropdown.
labelPosition: string = "left"; // Text located to the 'left' or 'top' position of dropdown.
labelStyle: any; // Style applied to 'label'.
options: any; // Values to select from.
optionStyle: any; // Main styling for the dropdown (e.g., font, border, colors, etc.).
noValueLabel: string = "..."; // 'No Value' label.
noValueDisabled: boolean = true; // Prevent 'No Value' from being selected.
valueField: any; // Property (key) to display as value if options are of type 'object'.
multiSelect: boolean = false; // Indicates single or multiple selections.
multiValues: boolean = true; // Show multiple values in the dropdown display or 'n selected' message after 2+ values selected.
selectedOptions: any; // Values pre-selected in dropdown.
hoverColor: any; // Color used when mouse hovers over values.
selectedColor: any; // Color used to indicate selected value (single selection dropdown ONLY).
// Output:
selectChangeEvent: EventEmitter<any> = new EventEmitter(); // Event triggered on selections.
textArrayValues = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0];
textArray = [
{
id: 1,
name: "a"
},
{
id: 2,
name: "b"
},
{
id: 3,
name: "c"
},
{
id: 4,
name: "d"
},
{
id: 5,
name: "e"
}
];
<sdk-select
[label]="'My Data'"
[labelStyle]="'font-family: Courier New; white-space: nowrap;'"
[optionStyle]="'height: 30px; width: 100%;'"
[options]="textArrayValues"
noValueLabel="ALL"
[noValueDisabled]=false
[selectedOptions]="5"
(selectChangeEvent)="selectedValue($event)">
</sdk-select>
<br />
<sdk-select
[options]="textArray"
valueField="name"
(selectChangeEvent)="selectedValue($event)">
</sdk-select>
<sdk-select
[options]="textArray"
valueField="[id]: [name]"
(selectChangeEvent)="selectedValue($event)">
</sdk-select>
<br />
<sdk-select
label="My Data"
labelPosition="top"
labelStyle="white-space: nowrap; padding-bottom: 5px; font-weight: 700;"
[options]="textArray"
optionStyle="font-family: Courier New; height: 40px; width: 500px; border: 1px solid red; background-color: yellow;"
noValueLabel="ALL"
[multiSelect]=true
valueField="name"
[selectedOptions]="['b', 'c']"
(selectChangeEvent)="selectedValue($event)">
</sdk-select>
<sdk-select
[options]="textArray"
[multiSelect]=true
[multiValues]=false
optionStyle="height: 40px; width: 100px;"
valueField="[id]: [name]"
[selectedOptions]="['4: d', '2: b']"
(selectChangeEvent)="selectedValue($event)">
</sdk-select>
<sdk-select
[options]="textArray"
[multiSelect]=true
optionStyle="height: 100%; width: 100%;"
valueField="[id]: [name]"
[selectedOptions]="['1: a', '3: c', '4: d', '2: b']"
(selectChangeEvent)="selectedValue($event)">
</sdk-select>
NOTE: Use brackets [] in the valueField
parameter to indicate properties (keys) used in the options
array.
FAQs
Simple to use (Angular) select option.
The npm package sdk-select receives a total of 117 weekly downloads. As such, sdk-select popularity was classified as not popular.
We found that sdk-select demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.