The wml-select-zero
library is a specialized Angular component library designed to enhance form inputs by providing a robust and flexible select component. Its primary objective is to offer a more dynamic and feature-rich alternative to the native HTML select element, catering to the diverse needs of modern web applications. With its advanced functionalities, the library addresses common challenges faced in creating user-friendly, interactive forms, such as handling dynamic data sets, enabling search and filtering capabilities, and offering better control over the styling and behavior of select menus.
At the core of the wml-select-zero
library are its central components: WmlSelectComponent
and WmlSelectOptionComponent
. The WmlSelectComponent
acts as the main container for the select functionality, encapsulating the logic for opening and closing the dropdown, managing selections, and triggering custom events. The WmlSelectOptionComponent
represents individual selectable items within the dropdown, providing a flexible structure for displaying options and handling user interactions. Developers can leverage these components to create highly interactive and customizable select menus, with support for single or multiple selections, search and filtering, and even asynchronous data loading. The library's design encourages a modular approach, where the WmlSelectComponent
can be dynamically populated with WmlSelectOptionComponent
instances, allowing for a high degree of customization and adaptability in different usage scenarios.
npm install -d @windmillcode/angular-wml-select-zero
This example demonstrates how to integrate a simple select component with static options.
<wml-select [params]="selectParams">
<wml-select-option *ngFor="let option of options" [value]="option.value">
{{ option.label }}
</wml-select-option>
</wml-select>
import { Component, OnInit } from '@angular/core';
import { WmlSelectParams } from 'wml-select-zero';
@Component({
selector: 'app-my-select',
templateUrl: './my-select.component.html'
})
export class MySelectComponent implements OnInit {
selectParams: WmlSelectParams;
options = [
{ label: 'Option 1', value: '1' },
{ label: 'Option 2', value: '2' },
{ label: 'Option 3', value: '3' }
];
ngOnInit() {
this.selectParams = new WmlSelectParams({
placeholder: 'Select an option',
multiple: false
});
}
}
In this example, we customize the appearance of select options.
<wml-select [params]="customSelectParams">
<wml-select-option *ngFor="let option of options" [value]="option.value" [customClass]="'custom-option-class'">
{{ option.label }}
</wml-select-option>
</wml-select>
import { Component, OnInit } from '@angular/core';
import { WmlSelectParams } from 'wml-select-zero';
@Component({
selector: 'app-custom-select',
templateUrl: './custom-select.component.html'
})
export class CustomSelectComponent implements OnInit {
customSelectParams: WmlSelectParams;
options = [
{ label: 'Custom Option 1', value: '1' },
{ label: 'Custom Option 2', value: '2' },
{ label: 'Custom Option 3', value: '3' }
];
ngOnInit() {
this.customSelectParams = new WmlSelectParams({
placeholder: 'Select a custom option',
multiple: true
});
}
}
- wml-select complete and ready
- disabled support
- default value support
- update component support
- update via formcontrol support
- added WMLSelectZeroParams.updateOptionValuesWithOptionText so that if users wanted text and value they can use
- made a minor change that will allow defaulr fields to populate under certain circumstances
- updated dependencies %!(EXTRA string=
- updated package to reflect the version 16.2.80 of @angular/core package),
- updated package to reflect the version 16.2.80 of @angular/core package,
- updated package to reflect the version 16.2.90 of @angular/core package,
- updated package to reflect the version 16.2.91 of @angular/core package,
- updated package to conform with @windmillcode/angular-wml-components-base for unit testing features ,
- updated package to conform with @windmillcode/angular-wml-components-base for unit testing features ,
- updated package to conform with @windmillcode/angular-wml-components-base for unit testing features ,
- updated package to conform with @windmillcode/angular-wml-components-base for unit testing features ,
- updated package to conform with @windmillcode/angular-wml-components-base for unit testing features ,
- updated package to conform with @windmillcode/angular-wml-components-base for unit testing features ,
- updated package to reflect the version ^17.0.2 of @angular/core package,
- updated package to reflect the version ^17.0.4 of @angular/core package,
- updated package to reflect the version ^17.0.5 of @angular/core package,
- updated package to reflect the version ^17.0.6 of @angular/core package,
- updated package to reflect the version ^17.0.7 of @angular/core package,
- updated package to conform with @windmillcode/angular-wml-components-base ,
- updated package to conform with @windmillcode/angular-wml-components-base ,
- updated package to conform with @windmillcode/angular-wml-components-base ,
- updated package to reflect the version ^17.0.8 of @angular/core package,
- updated package to conform with @windmillcode/angular-wml-components-base ,
- updated package to conform with @windmillcode/angular-wml-components-base ,
- updated package to conform with @windmillcode/angular-wml-components-base ,
- updated package to conform with @windmillcode/angular-wml-components-base ,
- updated package to conform with @windmillcode/angular-wml-components-base ,
- updated package to reflect the version ^17.1.0 of @angular/core package,
- updated package to conform with @windmillcode/angular-wml-components-base ,
- updated package to conform with @windmillcode/angular-wml-components-base ,
- updated package to reflect the version ^17.1.2 of @angular/core package,
- updated package to conform with @windmillcode/angular-wml-components-base ,
- updated package to reflect the version ^17.1.3 of @angular/core package,
- updated package to reflect the version ^17.2.1 of @angular/core package,
- updated package to reflect the version ^17.2.2 of @angular/core package,
- updated package to reflect the version ^17.2.3 of @angular/core package,
- updated package to conform with @windmillcode/angular-wml-components-base ,
- updated package to conform with @windmillcode/angular-wml-components-base ,
- updated package to reflect the version ^17.2.4 of @angular/core package,
- updated package to conform with @windmillcode/angular-wml-components-base ,
- updated package to conform with @windmillcode/angular-wml-components-base ,
- updated package to conform with @windmillcode/angular-wml-components-base ,
- updated package to conform with @windmillcode/angular-wml-components-base ,
- updated package to reflect the version ^17.3.0 of @angular/core package ,
- updated package to reflect the version ^17.3.1 of @angular/core package,
- updated package to reflect the version ^17.3.2 of @angular/core package,
- updated package to reflect the version ^17.3.3 of @angular/core package,
- updated package to reflect the version ^17.3.4 of @angular/core package,
- updated package to conform with @windmillcode/angular-wml-components-base ,
- updated package to reflect the version ^17.3.5 of @angular/core package,
- updated package to conform with @windmillcode/angular-wml-components-base ,
- updated package to reflect the version ^17.3.6 of @angular/core package,
- updated package to reflect the version ^17.3.7 of @angular/core package,
- updated package to reflect the version ^17.3.8 of @angular/core package,
- updated package to reflect the version ^17.3.9 of @angular/core package,
- updated package to reflect the version ^18.0.0 of @angular/core package,
- updated package to conform with @windmillcode/angular-wml-components-base ,
- updated package to reflect the version ^18.0.1 of @angular/core package,
- updated package to reflect the version ^18.0.2 of @angular/core package,
- updated package to reflect the version ^18.0.3 of @angular/core package,
- updated package to conform with @windmillcode/angular-wml-components-base ,
- updated package to conform with @windmillcode/angular-wml-components-base ,
- updated package to reflect the version ^18.0.5 of @angular/core package,
- updated package to reflect the version ^18.0.6 of @angular/core package,
- updated package to reflect the version ^18.1.0 of @angular/core package,
- updated package to conform with @windmillcode/angular-wml-components-base ,
- updated package to reflect the version ^18.1.1 of @angular/core package,
- updated package to reflect the version ^18.1.2 of @angular/core package,
- updated package to conform with @windmillcode/angular-wml-components-base ,
- updated package to conform with @windmillcode/angular-wml-components-base