gwt-kendo-controls
v1.0.0
Published
A custom Angular library that wraps Kendo UI for Angular components with custom GWT-prefixed selectors and additional functionality
Maintainers
Readme
gwt-kendo-controls
A custom Angular library that wraps Kendo UI for Angular components with custom GWT-prefixed selectors and additional functionality.
Installation
npm install gwt-kendo-controlsRequired Peer Dependencies
You'll also need to install the following Kendo UI packages:
npm install @progress/kendo-angular-buttons @progress/kendo-angular-dropdowns @progress/kendo-angular-inputs @progress/kendo-angular-layout @progress/kendo-angular-navigation @progress/kendo-angular-intl @progress/kendo-angular-l10n @progress/kendo-angular-common @progress/kendo-angular-popup @progress/kendo-angular-icons @progress/kendo-svg-icons @progress/kendo-licensing @progress/kendo-theme-default @angular/localizeQuick Start
- Add Kendo UI theme to your
src/styles.css:
@import "@progress/kendo-theme-default/dist/all.css";- Add localize polyfill to your
angular.json:
{
"projects": {
"your-app": {
"architect": {
"build": {
"options": {
"polyfills": [
"zone.js",
"@angular/localize/init"
]
}
}
}
}
}
}- Import and use the components:
import { Component } from '@angular/core';
import { KendoTextboxComponent } from 'gwt-kendo-controls';
import { FormsModule } from '@angular/forms';
@Component({
selector: 'app-root',
imports: [KendoTextboxComponent, FormsModule],
template: `
<gwt-kendo-textbox
placeholder="Enter text..."
[(ngModel)]="textValue">
</gwt-kendo-textbox>
<p>Value: {{ textValue }}</p>
`
})
export class AppComponent {
textValue = '';
}Available Components
KendoTextboxComponent
Selector: <gwt-kendo-textbox></gwt-kendo-textbox>
Properties:
value: any- Input valueplaceholder: string- Placeholder textdisabled: boolean- Disabled statereadonly: boolean- Readonly statetype: InputType- Input type (text, password)maxlength: number- Maximum lengthminlength: number- Minimum lengthclearButton: boolean- Show clear buttonisInvalid: boolean- Invalid state styling
Events:
onInputChange: EventEmitter<string>- Value change event
Example:
<gwt-kendo-textbox
placeholder="Enter text..."
[maxlength]="50"
[clearButton]="true"
[(ngModel)]="textValue"
(onInputChange)="onTextChange($event)">
</gwt-kendo-textbox>Module Usage
You can also import the full module:
import { KendoControlsModule } from 'gwt-kendo-controls';
@NgModule({
imports: [KendoControlsModule],
// ...
})
export class YourModule { }License
MIT
Support
For issues and feature requests, please visit: https://github.com/yourusername/gwt-kendo-controls/issues
