diff --git a/docs/angular/src/content/en/components/accordion.mdx b/docs/angular/src/content/en/components/accordion.mdx
index eadb230781..eb95621579 100644
--- a/docs/angular/src/content/en/components/accordion.mdx
+++ b/docs/angular/src/content/en/components/accordion.mdx
@@ -20,7 +20,7 @@ Users are enabled to interact and navigate among a list of items, such as thumbn
The following is a basic Angular Accordion example of a FAQ section. It operates as an accordion, with individually working sections. You can toggle each text block with a single click, while expanding multiple panels at the same time. This way you can read information more easily, without having to go back and forth between an automatically expanding and collapsing panel, which conceals the previously opened section every time.
-In it, you can see how to define an `igx-accrodion` and its . The sample also demonstrates the two types of expansion behavior. The switch button sets the property to toggle between single and multiple branches to be expanded at a time.
+In it, you can see how to define an `igx-accordion` and its . The sample also demonstrates the two types of expansion behavior. The switch button sets the property to toggle between single and multiple branches to be expanded at a time.
@@ -36,29 +36,13 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxAccordionModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-...
-import { IgxAccordionModule } from 'igniteui-angular/accordion';
-// import { IgxAccordionModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxAccordionModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxAccordionComponent` as a standalone dependency, or use the [`IGX_ACCORDION_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/accordion/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxAccordionComponent` is a standalone component. Import `IgxAccordionComponent` directly or use the `IGX_ACCORDION_DIRECTIVES` token, which includes the accordion and all of its supporting components and directives.
```typescript
// home.component.ts
-...
import { IGX_ACCORDION_DIRECTIVES } from 'igniteui-angular/accordion';
// import { IGX_ACCORDION_DIRECTIVES } from '@infragistics/igniteui-angular'; for licensed package
@@ -76,7 +60,6 @@ import { IGX_ACCORDION_DIRECTIVES } from 'igniteui-angular/accordion';
`,
- styleUrls: ['home.component.scss'],
standalone: true,
imports: [IGX_ACCORDION_DIRECTIVES]
/* or imports: [IgxAccordionComponent] */
@@ -84,7 +67,27 @@ import { IGX_ACCORDION_DIRECTIVES } from 'igniteui-angular/accordion';
export class HomeComponent {}
```
-Now that you have the Ignite UI for Angular Accordion module or directives imported, you can start with a basic configuration of the `igx-accordion` and its panels.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxAccordionModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxAccordionModule } from 'igniteui-angular/accordion';
+// import { IgxAccordionModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ imports: [..., IgxAccordionModule],
+})
+export class AppModule {}
+```
+
+
+`IgxAccordionModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_ACCORDION_DIRECTIVES` or `IgxAccordionComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Accordion directives imported, you can start with a basic configuration of the `igx-accordion` and its panels.
## Using the Angular Accordion Component
@@ -245,6 +248,32 @@ You can see the result below.
+## Events
+
+The emits the following events during panel expansion and collapse:
+
+| Event | Description | Cancelable |
+|-------|-------------|:----------:|
+| | Emitted before a panel expands. | Yes |
+| | Emitted after a panel has expanded. | No |
+| | Emitted before a panel collapses. | Yes |
+| | Emitted after a panel has collapsed. | No |
+
+The cancelable events expose a `cancel` property. Setting it to `true` prevents the expansion or collapse from occurring:
+
+```html
+
+
+```
+
+```typescript
+public handleExpanding(event: IAccordionCancelableEventArgs) {
+ if (event.panel.disabled) {
+ event.cancel = true;
+ }
+}
+```
+
## Keyboard Navigation
Keyboard navigation in the Ignite UI for Angular Accordion provides a rich variety of keyboard interactions to the end-user. This functionality is enabled by default and allows end-users to easily navigate through the panels.
@@ -305,6 +334,8 @@ The last step is to include the component's theme.
-
-
-
+-
+-
- [IgxExpansionPanel Styles]({environment:sassApiUrl}/themes#mixin-igx-expansion-panel)
## Additional Resources
diff --git a/docs/angular/src/content/en/components/action-strip.mdx b/docs/angular/src/content/en/components/action-strip.mdx
index 3810a13df9..9746dc0c71 100644
--- a/docs/angular/src/content/en/components/action-strip.mdx
+++ b/docs/angular/src/content/en/components/action-strip.mdx
@@ -31,29 +31,13 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxActionStripModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-...
-import { IgxActionStripModule } from 'igniteui-angular/action-strip';
-// import { IgxActionStripModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxActionStripModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxActionStripComponent` as a standalone dependency, or use the [`IGX_ACTION_STRIP_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/action-strip/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxActionStripComponent` is a standalone component. Import it directly or use the `IGX_ACTION_STRIP_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
-...
import { IGX_ACTION_STRIP_DIRECTIVES } from 'igniteui-angular/action-strip';
import { IgxButtonDirective } from 'igniteui-angular/button';
import { IgxIconComponent } from 'igniteui-angular/icon';
@@ -78,7 +62,29 @@ import { IgxIconComponent } from 'igniteui-angular/icon';
export class HomeComponent {}
```
-Now that you have the Ignite UI for Angular Action Strip module or directives imported, you can start with a basic configuration of the `igx-action-strip` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxActionStripModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxActionStripModule } from 'igniteui-angular/action-strip';
+// import { IgxActionStripModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxActionStripModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxActionStripModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_ACTION_STRIP_DIRECTIVES` or `IgxActionStripComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Action Strip directives imported, you can start with a basic configuration of the `igx-action-strip` component.
## Using the Angular Action Strip Component
@@ -118,6 +124,29 @@ For scenarios where more than three action items will be shown, it is best to us
+### Programmatic Visibility
+
+Use `show()` and `hide()` to control the Action Strip programmatically:
+
+```typescript
+@ViewChild('actionStrip') actionStrip: IgxActionStripComponent;
+
+// Show the strip for a specific context (e.g. a hovered row)
+this.actionStrip.show(rowComponent);
+
+// Hide it when interaction ends
+this.actionStrip.hide();
+```
+
+The `hidden` input can also be set declaratively as an initial state:
+
+```html
+
+ edit
+
+```
+
+
### Reusing the Action Strip
The same Action Strip instance can be used in multiple places in the document as long as the actions need not be visible simultaneously for them.
diff --git a/docs/angular/src/content/en/components/autocomplete.mdx b/docs/angular/src/content/en/components/autocomplete.mdx
index 93b7a0d29a..e8e20e25da 100644
--- a/docs/angular/src/content/en/components/autocomplete.mdx
+++ b/docs/angular/src/content/en/components/autocomplete.mdx
@@ -35,36 +35,13 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the **IgxAutocompleteModule** and **IgxDropDownModule** in our **app.module**. If is applied on an , the **igxInputGroupModule** is also required:
+### Standalone Component
-```typescript
-// app.module.ts
-
-...
-import { IgxAutocompleteModule, IgxDropDownModule } from 'igniteui-angular/drop-down';
-import { IgxInputGroupModule } from 'igniteui-angular/input-group';
-// import { IgxAutocompleteModule, IgxDropDownModule, IgxInputGroupModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [
- ...,
- IgxAutocompleteModule,
- IgxDropDownModule,
- IgxInputGroupModule,
- ....
- ],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxAutocompleteDirective` as a standalone directive.
+Since `16.0.0`, `IgxAutocompleteDirective` is a standalone component. Import it directly or use the `IGX_DROP_DOWN_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
-...
import { IgxAutocompleteDirective, IGX_DROP_DOWN_DIRECTIVES } from 'igniteui-angular/drop-down';
import { IGX_INPUT_GROUP_DIRECTIVES } from 'igniteui-angular/input-group';
// import { IgxAutocompleteDirective, IGX_INPUT_GROUP_DIRECTIVES, IGX_DROP_DOWN_DIRECTIVES } from '@infragistics/igniteui-angular'; for licensed package
@@ -89,6 +66,35 @@ import { IGX_INPUT_GROUP_DIRECTIVES } from 'igniteui-angular/input-group';
export class HomeComponent {}
```
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxAutocompleteModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxAutocompleteModule, IgxDropDownModule } from 'igniteui-angular/drop-down';
+import { IgxInputGroupModule } from 'igniteui-angular/input-group';
+// import { IgxAutocompleteModule, IgxDropDownModule, IgxInputGroupModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [
+ ...,
+ IgxAutocompleteModule,
+ IgxDropDownModule,
+ IgxInputGroupModule,
+ ....
+ ],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxAutocompleteModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_DROP_DOWN_DIRECTIVES` or `IgxAutocompleteDirective` import instead.
+
+
Now that you have the Ignite UI for Angular Action Strip module or directive imported, you can start with a basic configuration of the `igxAutocomplete` component.
## Using the Angular Autocomplete
@@ -222,6 +228,30 @@ If everything went right, you should see this in your browser:
+## Events
+
+| Event | Description | Cancelable |
+|-------|-------------|:----------:|
+| `selectionChanging` | Emitted before an item from the dropdown is selected. Provides `value`, `cancel`, and `owner`. | Yes |
+
+Use `selectionChanging` to intercept or transform the selected value:
+
+```typescript
+import { AutocompleteSelectionChangingEventArgs } from 'igniteui-angular/drop-down';
+// import { AutocompleteSelectionChangingEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onSelectionChanging(args: AutocompleteSelectionChangingEventArgs) {
+ if (args.value === 'Restricted City') {
+ args.cancel = true;
+ }
+}
+```
+
+```html
+
+
+```
+
## Keyboard Navigation
diff --git a/docs/angular/src/content/en/components/avatar.mdx b/docs/angular/src/content/en/components/avatar.mdx
index 0b2974f623..3307589b27 100644
--- a/docs/angular/src/content/en/components/avatar.mdx
+++ b/docs/angular/src/content/en/components/avatar.mdx
@@ -31,29 +31,13 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxAvatarModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-...
-import { IgxAvatarModule } from 'igniteui-angular/avatar';
-// import { IgxAvatarModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxAvatarModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxAvatarComponent` as a standalone dependency.
+Since `16.0.0`, `IgxAvatarComponent` is a standalone component. Import it directly into your component's `imports` array.
```typescript
// home.component.ts
-...
import { IgxAvatarComponent } from 'igniteui-angular/avatar';
// import { IgxAvatarComponent } from '@infragistics/igniteui-angular'; for licensed package
@@ -67,6 +51,28 @@ import { IgxAvatarComponent } from 'igniteui-angular/avatar';
export class HomeComponent {}
```
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxAvatarModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxAvatarModule } from 'igniteui-angular/avatar';
+// import { IgxAvatarModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxAvatarModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxAvatarModule` is kept for backwards compatibility only. New projects should use the standalone `IgxAvatarComponent` import instead.
+
+
Now that you have the Ignite UI for Angular Avatar module or component imported, you can start with a basic configuration of the `igx-avatar` component.
## Using the Angular Avatar Component
diff --git a/docs/angular/src/content/en/components/badge.mdx b/docs/angular/src/content/en/components/badge.mdx
index 58fd186afb..650185195a 100644
--- a/docs/angular/src/content/en/components/badge.mdx
+++ b/docs/angular/src/content/en/components/badge.mdx
@@ -30,12 +30,33 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxBadgeModule` in your **app.module.ts** file.
+### Standalone Component
+
+Since `16.0.0`, `IgxBadgeComponent` is a standalone component. Import it directly into your component's `imports` array.
+
+```typescript
+// home.component.ts
+
+import { IgxBadgeComponent } from 'igniteui-angular/badge';
+// import { IgxBadgeComponent } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-home',
+ template: ' ',
+ styleUrls: ['home.component.scss'],
+ standalone: true,
+ imports: [IgxBadgeComponent]
+})
+export class HomeComponent {}
+```
+
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxBadgeModule` in your **app.module.ts**:
```typescript
// app.module.ts
-...
import { IgxBadgeModule } from 'igniteui-angular/badge';
// import { IgxBadgeModule } from '@infragistics/igniteui-angular'; for licensed package
@@ -47,30 +68,31 @@ import { IgxBadgeModule } from 'igniteui-angular/badge';
export class AppModule {}
```
-Alternatively, as of `16.0.0` you can import the `IgxBadgeComponent` as a standalone dependency.
+
+`IgxBadgeModule` is kept for backwards compatibility only. New projects should use the standalone `IgxBadgeComponent` import instead.
+
-```typescript
-// home.component.ts
+Now that you have the Ignite UI for Angular Badge module or component imported, you can start with a basic configuration of the `igx-badge` component.
-...
+## Using the Angular Badge Component
+
+Let's see how the demo sample is done. It's a simple success badge on an avatar. To build that, we need to import `IgxBadgeComponent` and `IgxAvatarComponent`:
+
+```typescript
import { IgxBadgeComponent } from 'igniteui-angular/badge';
-// import { IgxBadgeComponent } from '@infragistics/igniteui-angular'; for licensed package
+import { IgxAvatarComponent } from 'igniteui-angular/avatar';
+// import { IgxBadgeComponent, IgxAvatarComponent } from '@infragistics/igniteui-angular'; for licensed package
@Component({
- selector: 'app-home',
- template: ' ',
- styleUrls: ['home.component.scss'],
+ selector: 'app-example',
standalone: true,
- imports: [IgxBadgeComponent]
+ imports: [IgxBadgeComponent, IgxAvatarComponent],
+ /* ... */
})
-export class HomeComponent {}
+export class ExampleComponent {}
```
-Now that you have the Ignite UI for Angular Badge module or component imported, you can start with a basic configuration of the `igx-badge` component.
-
-## Using the Angular Badge Component
-
-Let's see how the demo sample is done. It's a simple success badge on an avatar. To build that, we need to import the `IgxAvatarModule`, along with the `IgxBadgeModule`:
+Alternatively, for NgModule-based applications:_
```typescript
// app.module.ts
@@ -88,8 +110,6 @@ import { IgxAvatarModule } from 'igniteui-angular/avatar';
export class AppModule {}
```
-_Alternatively, as of `16.0.0` you can import the `IgxBadgeComponent` and `IgxAvatarComponent` as standalone dependencies._
-
Next, we will add those components to our template:
```html
@@ -172,7 +192,24 @@ The `igx-badge` component can also render as a minimal dot indicator for notific
Let's extend the previous sample and create a list with contacts, similar to those in chat clients. In addition to the contact name, we want to display an avatar and the current state of the contact (online, offline or away). To achieve this, we're using the and components. For a container, is used.
-To continue, include all needed modules and import them in the **app.module.ts** file.
+To continue, import the required components:
+
+```typescript
+import { IGX_LIST_DIRECTIVES } from 'igniteui-angular/list';
+import { IgxAvatarComponent } from 'igniteui-angular/avatar';
+import { IgxBadgeComponent } from 'igniteui-angular/badge';
+// import { IGX_LIST_DIRECTIVES, IgxAvatarComponent, IgxBadgeComponent } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-example',
+ standalone: true,
+ imports: [IGX_LIST_DIRECTIVES, IgxAvatarComponent, IgxBadgeComponent],
+ /* ... */
+})
+export class ExampleComponent {}
+```
+
+Alternatively, for NgModule-based applications:_
```typescript
// app.module.ts
diff --git a/docs/angular/src/content/en/components/banner.mdx b/docs/angular/src/content/en/components/banner.mdx
index 791c860c2c..0f209715ad 100644
--- a/docs/angular/src/content/en/components/banner.mdx
+++ b/docs/angular/src/content/en/components/banner.mdx
@@ -30,29 +30,13 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxBannerModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-...
-import { IgxBannerModule } from 'igniteui-angular/banner';
-// import { IgxBannerModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxBannerModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxBannerComponent` as a standalone dependency, or use the [`IGX_BANNER_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/banner/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxBannerComponent` is a standalone component. Import it directly or use the `IGX_BANNER_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
-...
import { IGX_BANNER_DIRECTIVES } from 'igniteui-angular/banner';
// import { IGX_BANNER_DIRECTIVES } from '@infragistics/igniteui-angular'; for licensed package
@@ -71,7 +55,29 @@ import { IGX_BANNER_DIRECTIVES } from 'igniteui-angular/banner';
export class HomeComponent {}
```
-Now that you have the Ignite UI for Angular Banner module or directives imported, you can start with a basic configuration of the `igx-banner` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxBannerModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxBannerModule } from 'igniteui-angular/banner';
+// import { IgxBannerModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxBannerModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxBannerModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_BANNER_DIRECTIVES` or `IgxBannerComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Banner directives imported, you can start with a basic configuration of the `igx-banner` component.
## Using the Angular Banner Component
@@ -252,6 +258,35 @@ Finally, we will add a `toast`, displaying a message about the WiFi state. The r
+## Events
+
+| Event | Description | Cancelable |
+|-------|-------------|:----------:|
+| `opening` | Emitted before the banner starts opening. Provides `BannerCancelEventArgs` with `banner` and `cancel`. | Yes |
+| `opened` | Emitted after the banner finishes opening. | No |
+| `closing` | Emitted before the banner starts closing. Provides `BannerCancelEventArgs` with `banner` and `cancel`. | Yes |
+| `closed` | Emitted after the banner finishes closing. | No |
+
+Use `closing` to prevent the banner from being dismissed in specific scenarios:
+
+```typescript
+import { BannerCancelEventArgs } from 'igniteui-angular/banner';
+// import { BannerCancelEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onBannerClosing(args: BannerCancelEventArgs) {
+ if (this.requiresAcknowledgement) {
+ args.cancel = true;
+ }
+}
+```
+
+```html
+
+ warning
+ Please review the terms before continuing.
+
+```
+
## Styling
First, in order to use the functions exposed by the theme engine, we need to import the index file in our style file:
diff --git a/docs/angular/src/content/en/components/button-group.mdx b/docs/angular/src/content/en/components/button-group.mdx
index 8387967daa..3e2afbb9f7 100644
--- a/docs/angular/src/content/en/components/button-group.mdx
+++ b/docs/angular/src/content/en/components/button-group.mdx
@@ -30,29 +30,13 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxButtonGroupModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-...
-import { IgxButtonGroupModule } from 'igniteui-angular/button-group';
-// import { IgxButtonGroupModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxButtonGroupModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxButtonGroupComponent` as a standalone dependency, or use the [`IGX_BUTTON_GROUP_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/buttonGroup/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxButtonGroupComponent` is a standalone component. Import it directly or use the `IGX_BUTTON_GROUP_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
-...
import { IGX_BUTTON_GROUP_DIRECTIVES } from 'igniteui-angular/button-group';
import { IgxIconComponent } from 'igniteui-angular/icon';
// import { IGX_BUTTON_GROUP_DIRECTIVES, IgxIconComponent } from '@infragistics/igniteui-angular'; for licensed package
@@ -83,7 +67,29 @@ import { IgxIconComponent } from 'igniteui-angular/icon';
export class HomeComponent {}
```
-Now that you have the Ignite UI for Angular Button Group module or directives imported, you can start with a basic configuration of the `igx-buttongroup` and its buttons.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxButtonGroupModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxButtonGroupModule } from 'igniteui-angular/button-group';
+// import { IgxButtonGroupModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxButtonGroupModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxButtonGroupModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_BUTTON_GROUP_DIRECTIVES` or `IgxButtonGroupComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Button Group directives imported, you can start with a basic configuration of the `igx-buttongroup` and its buttons.
## Using for Angular Button Group Component
diff --git a/docs/angular/src/content/en/components/button.mdx b/docs/angular/src/content/en/components/button.mdx
index 040eec90d3..394fe6cede 100644
--- a/docs/angular/src/content/en/components/button.mdx
+++ b/docs/angular/src/content/en/components/button.mdx
@@ -34,28 +34,13 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxButtonModule` in your **app.module.ts** file.
+### Standalone Directive
-```typescript
-// app.module.ts
-import { IgxButtonModule } from 'igniteui-angular/button';
-// import { IgxButtonModule } from '@infragistics/igniteui-angular'; for licensed package
-@NgModule({
- imports: [
- ...
- IgxButtonModule,
- ...
- ]
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxButtonDirective` as a standalone dependency.
+Since `16.0.0`, `IgxButtonDirective` is a standalone directive. Import it directly into your component's `imports` array.
```typescript
// home.component.ts
-...
import { IgxButtonDirective } from 'igniteui-angular/button';
// import { IgxButtonDirective } from '@infragistics/igniteui-angular'; for licensed package
@@ -69,6 +54,28 @@ import { IgxButtonDirective } from 'igniteui-angular/button';
export class HomeComponent {}
```
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxButtonModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+import { IgxButtonModule } from 'igniteui-angular/button';
+// import { IgxButtonModule } from '@infragistics/igniteui-angular'; for licensed package
+@NgModule({
+ imports: [
+ ...
+ IgxButtonModule,
+ ...
+ ]
+})
+export class AppModule {}
+```
+
+
+`IgxButtonModule` is kept for backwards compatibility only. New projects should use the standalone `IgxButtonDirective` import instead.
+
+
Now that you have the Ignite UI for Angular Button module or directive imported, you can start using the `igxButton` directive on elements.
## Angular Button Types
@@ -194,7 +201,22 @@ We can also use the `igxButton` directive to turn elements like `span` and `div`
## Size
-We can allow the user to choose the size of the `igxButton` by using the `--ig-size` custom CSS property. To do this, first we have to import the `IgxButtonGroupModule`, and then use the component to display size values. This way whenever one gets selected, we will update the **--ig-size** CSS property.
+We can allow the user to choose the size of the `igxButton` by using the `--ig-size` custom CSS property. To do this, import `IGX_BUTTON_GROUP_DIRECTIVES` and use the component to display size values. This way whenever one gets selected, we will update the **--ig-size** CSS property.
+
+```typescript
+import { IGX_BUTTON_GROUP_DIRECTIVES } from 'igniteui-angular/button-group';
+// import { IGX_BUTTON_GROUP_DIRECTIVES } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-example',
+ standalone: true,
+ imports: [IGX_BUTTON_GROUP_DIRECTIVES],
+ /* ... */
+})
+export class ExampleComponent {}
+```
+
+Alternatively, for NgModule-based applications:_
```typescript
// app.module.ts
diff --git a/docs/angular/src/content/en/components/calendar.mdx b/docs/angular/src/content/en/components/calendar.mdx
index 522bfa06d4..73d51f67fe 100644
--- a/docs/angular/src/content/en/components/calendar.mdx
+++ b/docs/angular/src/content/en/components/calendar.mdx
@@ -35,29 +35,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxCalendarModule` in your **app.module.ts** file.
+### Standalone Component
-
-The also depends on the [`BrowserAnimationsModule`](https://angular.io/api/platform-browser/animations/BrowserAnimationsModule) and **optionally** the [`HammerModule`](https://angular.io/api/platform-browser/HammerModule) for touch interactions, so they need to be added to the AppModule as well:
-
-
-```typescript
-// app.module.ts
-...
-import { HammerModule } from '@angular/platform-browser';
-import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
-import { IgxCalendarModule } from 'igniteui-angular/calendar';
-// import { IgxCalendarModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., BrowserAnimationsModule, HammerModule, IgxCalendarModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxCalendarComponent` as a standalone dependency, or use the [`IGX_CALENDAR_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/calendar/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxCalendarComponent` is a standalone component. Import it directly or use the `IGX_CALENDAR_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -78,7 +58,30 @@ import { IGX_CALENDAR_DIRECTIVES } from 'igniteui-angular/calendar';
export class HomeComponent {}
```
-Now that you have the Ignite UI for Angular Calendar module or directives imported, you can start using the `igx-calendar` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxCalendarModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+import { HammerModule } from '@angular/platform-browser';
+import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
+import { IgxCalendarModule } from 'igniteui-angular/calendar';
+// import { IgxCalendarModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., BrowserAnimationsModule, HammerModule, IgxCalendarModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxCalendarModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_CALENDAR_DIRECTIVES` or `IgxCalendarComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Calendar directives imported, you can start using the `igx-calendar` component.
The uses the [Intl Web API](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat) for localization and formatting of dates.
diff --git a/docs/angular/src/content/en/components/card.mdx b/docs/angular/src/content/en/components/card.mdx
index 9481a6161c..71cbd26dc3 100644
--- a/docs/angular/src/content/en/components/card.mdx
+++ b/docs/angular/src/content/en/components/card.mdx
@@ -35,23 +35,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxCardModule` inside your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-...
-import { IgxCardModule } from 'igniteui-angular/card';
-// import { IgxCardModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxCardModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxCardComponent` as a standalone dependency, or use the [`IGX_CARD_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/card/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxCardComponent` is a standalone component. Import it directly or use the `IGX_CARD_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -106,7 +92,28 @@ import { IGX_CARD_DIRECTIVES } from 'igniteui-angular/card';
export class HomeComponent {}
```
-Now that you have the Ignite UI for Angular Card module or directives imported, you can start using the `igx-card` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxCardModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+import { IgxCardModule } from 'igniteui-angular/card';
+// import { IgxCardModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxCardModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxCardModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_CARD_DIRECTIVES` or `IgxCardComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Card directives imported, you can start using the `igx-card` component.
## Using the Angular Card Component
diff --git a/docs/angular/src/content/en/components/carousel.mdx b/docs/angular/src/content/en/components/carousel.mdx
index 7b390df10e..b962846876 100644
--- a/docs/angular/src/content/en/components/carousel.mdx
+++ b/docs/angular/src/content/en/components/carousel.mdx
@@ -35,28 +35,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the **IgxCarouselModule** in our **app.module.ts** file:
+### Standalone Component
-
-This component can utilize the [`HammerModule`](https://angular.io/api/platform-browser/HammerModule) **optionally**. It can be imported in the root module of the application in order for touch interactions to work as expected.
-
-
-```typescript
-// app.module.ts
-
-import { HammerModule } from '@angular/platform-browser';
-import { IgxCarouselModule } from 'igniteui-angular/carousel';
-// import { IgxCarouselModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., HammerModule, IgxCarouselModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxCarouselComponent` as a standalone dependency, or use the [`IGX_CAROUSEL_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/carousel/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxCarouselComponent` is a standalone component. Import it directly or use the `IGX_CAROUSEL_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -86,7 +67,30 @@ import { IGX_CAROUSEL_DIRECTIVES } from 'igniteui-angular/carousel';
export class HomeComponent {}
```
-Now that you have the Ignite UI for Angular Carousel module or directives imported, you can start using the `igx-carousel` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxCarouselModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { HammerModule } from '@angular/platform-browser';
+import { IgxCarouselModule } from 'igniteui-angular/carousel';
+// import { IgxCarouselModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., HammerModule, IgxCarouselModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxCarouselModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_CAROUSEL_DIRECTIVES` or `IgxCarouselComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Carousel directives imported, you can start using the `igx-carousel` component.
## Using the Angular Carousel Component
@@ -803,6 +807,32 @@ At the end your carousel should look like this:
- [aria-labelledby](https://www.w3.org/TR/wai-aria/#aria-labelledby) follows the pattern "tab-${this.index}-${this.total}"
- [aria-selected](https://www.w3.org/TR/wai-aria-1.1/#aria-selected) set **active** slide. Indicates the current **selected** state of a particular slide element.
+## Events
+
+| Event | Description | Cancelable |
+|-------|-------------|:----------:|
+| `slideChanged` | Emitted after the current slide changes. Provides the `ISlideEventArgs` with `carousel` and `slide`. | No |
+| `slideAdded` | Emitted when a new slide is added to the carousel. | No |
+| `slideRemoved` | Emitted when a slide is removed from the carousel. | No |
+| `carouselPaused` | Emitted when the carousel auto-play is paused. | No |
+| `carouselPlaying` | Emitted when the carousel auto-play resumes. | No |
+
+```typescript
+import { ISlideEventArgs } from 'igniteui-angular/carousel';
+// import { ISlideEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onSlideChanged(args: ISlideEventArgs) {
+ console.log('Active slide index:', args.slide.index);
+}
+```
+
+```html
+
+
+
+```
+
+
## API References
diff --git a/docs/angular/src/content/en/components/checkbox.mdx b/docs/angular/src/content/en/components/checkbox.mdx
index 5ffdfa1732..4ae41aac60 100644
--- a/docs/angular/src/content/en/components/checkbox.mdx
+++ b/docs/angular/src/content/en/components/checkbox.mdx
@@ -34,23 +34,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxCheckboxModule` in the **app.module.ts** file:
+### Standalone Component
-```typescript
-// app.module.ts
-
-import { IgxCheckboxModule } from 'igniteui-angular/checkbox';
-// import { IgxCheckboxModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxCheckboxModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxCheckboxComponent` as a standalone dependency.
+Since `16.0.0`, `IgxCheckboxComponent` is a standalone component. Import it directly into your component's `imports` array.
```typescript
// home.component.ts
@@ -72,6 +58,28 @@ import { IgxCheckboxComponent } from 'igniteui-angular/checkbox';
export class HomeComponent {}
```
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxCheckboxModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxCheckboxModule } from 'igniteui-angular/checkbox';
+// import { IgxCheckboxModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxCheckboxModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxCheckboxModule` is kept for backwards compatibility only. New projects should use the standalone `IgxCheckboxComponent` import instead.
+
+
Now that you have the Ignite UI for Angular Checkbox module or component imported, you can start using the `igx-checkbox` component.
## Using the Angular Checkbox Component
@@ -223,6 +231,64 @@ public toggleAll() {
After all that is done, our application should look like this:
+### Required Checkbox
+
+Use the `required` property to mark the checkbox as required in forms:
+
+```html
+
+ I agree to the terms
+
+```
+
+### Disabled and Read-only
+
+```html
+{/* Completely non-interactive */}
+Disabled
+
+{/* Displays state but blocks user changes */}
+Read-only
+```
+
+### Change Event
+
+The `change` event fires whenever the checkbox value changes. The event argument provides a reference to the checkbox and the new checked state:
+
+```typescript
+import { IChangeCheckboxEventArgs } from 'igniteui-angular/checkbox';
+// import { IChangeCheckboxEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onCheckboxChange(event: IChangeCheckboxEventArgs) {
+ console.log('Checked:', event.checked);
+ console.log('Value:', event.value);
+ console.log('Owner:', event.owner);
+}
+```
+
+```html
+Item 1
+```
+
+## Events
+
+| Event | Description | Cancelable |
+|-------|-------------|:----------:|
+| `change` | Emitted when the checked state changes. Provides `IChangeCheckboxEventArgs` with `checked` and `value`. | No |
+
+```typescript
+import { IChangeCheckboxEventArgs } from 'igniteui-angular/checkbox';
+// import { IChangeCheckboxEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onCheckboxChange(args: IChangeCheckboxEventArgs) {
+ console.log('Checked:', args.checked, 'Value:', args.value);
+}
+```
+
+```html
+Option 1
+```
+
## Styling
### Checkbox Theme Property Map
diff --git a/docs/angular/src/content/en/components/chip.mdx b/docs/angular/src/content/en/components/chip.mdx
index e3367eb1bd..4ed30d2730 100644
--- a/docs/angular/src/content/en/components/chip.mdx
+++ b/docs/angular/src/content/en/components/chip.mdx
@@ -28,23 +28,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the **IgxChipsModule** in the **app.module.ts** file:
+### Standalone Component
-```typescript
-// app.module.ts
-
-import { IgxChipsModule } from 'igniteui-angular/chips';
-// import { IgxChipsModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxChipsModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxChipComponent` as a standalone dependency, or use the [`IGX_CHIPS_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/chips/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxChipComponent` is a standalone component. Import it directly or use the `IGX_CHIPS_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -74,7 +60,29 @@ export class HomeComponent {
}
```
-Now that you have the Ignite UI for Angular Chips module or directives imported, you can start using the `igx-chip` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxChipsModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxChipsModule } from 'igniteui-angular/chips';
+// import { IgxChipsModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxChipsModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxChipsModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_CHIPS_DIRECTIVES` or `IgxChipComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Chips directives imported, you can start using the `igx-chip` component.
## Using the Angular Chip Component
@@ -134,6 +142,50 @@ Dragging can be enabled by setting the
```
+By default, the original chip element is hidden while dragging (`hideBaseOnDrag: true`) and returns to its position with an animation (`animateOnRelease: true`). Both behaviors can be controlled:
+
+```html
+
+ Drag Me
+
+```
+
+### Chip Variants
+
+The chip can be styled using the `variant` input to communicate semantic meaning. Accepted values are `primary`, `info`, `success`, `warning`, and `danger`.
+
+```html
+Primary
+Success
+Warning
+Danger
+Info
+```
+
+### Disabled Chips
+
+Set `disabled` to prevent user interaction (clicking, selection, dragging):
+
+```html
+Disabled
+```
+
+### Custom Background Color
+
+Use the `color` input to set an arbitrary background color:
+
+```html
+Custom Color
+```
+
+### Two-Way Binding for Selection
+
+The `selected` property supports two-way binding:
+
+```html
+Tag
+```
+
To reorder the chips you need to handle the event using the .
@@ -702,6 +754,39 @@ igx-chip {
Learn more about it in the [Size](/display-density) article.
+## Events
+
+| Event | Description | Cancelable |
+|-------|-------------|:----------:|
+| `chipClick` | Emitted when the chip is clicked. | Yes |
+| `selectedChanging` | Emitted before selection state changes. | Yes |
+| `selectedChanged` | Emitted after selection change animation completes. | No |
+| `remove` | Emitted when the remove button is clicked or Delete key is pressed. | No |
+| `keyDown` | Emitted on keyboard interaction. | Yes |
+| `moveStart` | Emitted when a drag begins. | No |
+| `moveEnd` | Emitted when a drag ends (after return animation). | No |
+| `dragEnter` | Emitted when a dragged chip enters this chip's drop zone. | No |
+| `dragLeave` | Emitted when a dragged chip leaves this chip's drop zone. | No |
+| `dragOver` | Emitted while a dragged chip is over this chip's drop zone. | No |
+| `dragDrop` | Emitted when a dragged chip is dropped onto this chip. | No |
+
+Cancelable events expose a `cancel` property. Set it to `true` to prevent the default action:
+
+```typescript
+import { IChipSelectEventArgs } from 'igniteui-angular/chips';
+// import { IChipSelectEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onSelectionChanging(event: IChipSelectEventArgs) {
+ if (event.owner.data?.locked) {
+ event.cancel = true;
+ }
+}
+```
+
+```html
+Locked
+```
+
## API
-
diff --git a/docs/angular/src/content/en/components/circular-progress.mdx b/docs/angular/src/content/en/components/circular-progress.mdx
index b84abd3fe1..03f82fb1cc 100644
--- a/docs/angular/src/content/en/components/circular-progress.mdx
+++ b/docs/angular/src/content/en/components/circular-progress.mdx
@@ -30,24 +30,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxProgressBarModule` in the **app.module.ts** file:
+### Standalone Component
-```typescript
-// app.module.ts
-
-...
-import { IgxProgressBarModule } from 'igniteui-angular/progressbar';
-// import { IgxProgressBarModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxProgressBarModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxCircularProgressBarComponent` as a standalone dependency, or use the [`IGX_CIRCULAR_PROGRESS_BAR_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/progressbar/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxCircularProgressBarComponent` is a standalone component. Import it directly or use the `IGX_CIRCULAR_PROGRESS_BAR_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -72,7 +57,29 @@ import { IGX_CIRCULAR_PROGRESS_BAR_DIRECTIVES } from 'igniteui-angular/progressb
export class HomeComponent {}
```
-Now that you have the Ignite UI for Angular Progress Bar module or directives imported, you can start using the `igx-circular-bar` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxProgressBarModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxProgressBarModule } from 'igniteui-angular/progressbar';
+// import { IgxProgressBarModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxProgressBarModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxProgressBarModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_CIRCULAR_PROGRESS_BAR_DIRECTIVES` or `IgxCircularProgressBarComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Progress Bar directives imported, you can start using the `igx-circular-bar` component.
## Using the Angular Circular Progress
diff --git a/docs/angular/src/content/en/components/combo-features.mdx b/docs/angular/src/content/en/components/combo-features.mdx
index f7ef49f999..094aba83fe 100644
--- a/docs/angular/src/content/en/components/combo-features.mdx
+++ b/docs/angular/src/content/en/components/combo-features.mdx
@@ -27,7 +27,23 @@ The following demo demonstrates some of the combobox features that are enabled/d
### First Steps
-To get started with the combobox component, first you need to import the `IgxComboModule` in your **app.module.ts** file. Our sample also uses the component to toggle combobox properties' values, so we will need the `IgxSwitchModule` as well:
+To get started with the combobox component, import `IGX_COMBO_DIRECTIVES`. Our sample also uses the component to toggle combobox properties' values, so we will need `IgxSwitchComponent` as well:
+
+```typescript
+import { IGX_COMBO_DIRECTIVES } from 'igniteui-angular/combo';
+import { IgxSwitchComponent } from 'igniteui-angular/switch';
+// import { IGX_COMBO_DIRECTIVES, IgxSwitchComponent } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-example',
+ standalone: true,
+ imports: [IGX_COMBO_DIRECTIVES, IgxSwitchComponent],
+ /* ... */
+})
+export class ExampleComponent {}
+```
+
+Alternatively, for NgModule-based applications:_
```typescript
import { IgxComboModule } from 'igniteui-angular/combo';
diff --git a/docs/angular/src/content/en/components/combo-remote.mdx b/docs/angular/src/content/en/components/combo-remote.mdx
index 762b84b83c..64a6865aff 100644
--- a/docs/angular/src/content/en/components/combo-remote.mdx
+++ b/docs/angular/src/content/en/components/combo-remote.mdx
@@ -23,7 +23,22 @@ The sample below demonstrates remote binding using the
+`IgxComboModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_COMBO_DIRECTIVES` or `IgxComboComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Combo directives imported, you can start using the `igx-combo` component.
## Using the Angular ComboBox Component
@@ -232,6 +240,39 @@ public singleSelection(event: IComboSelectionChangeEventArgs) {
+## Events
+
+The ComboBox component emits the following events:
+
+| Event | Description | Cancelable |
+|-------|-------------|:----------:|
+| `opening` | Emitted before the dropdown opens. | Yes |
+| `opened` | Emitted after the dropdown finishes opening. | No |
+| `closing` | Emitted before the dropdown closes. | Yes |
+| `closed` | Emitted after the dropdown finishes closing. | No |
+| `selectionChanging` | Emitted before the selection changes. Provides `oldValue`, `newValue`, `added`, and `removed`. | Yes |
+| `selectionChanged` | Emitted after the selection changes. Provides `oldValue`, `newValue`, `added`, and `removed`. | No |
+
+Use the cancelable `selectionChanging` event to prevent certain items from being selected:
+
+```typescript
+import { IComboSelectionChangingEventArgs } from 'igniteui-angular/combo';
+// import { IComboSelectionChangingEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onSelectionChanging(event: IComboSelectionChangingEventArgs) {
+ // Prevent selecting more than 3 items
+ if (event.newValue.length > 3) {
+ event.cancel = true;
+ }
+}
+```
+
+```html
+
+
+```
+
## Keyboard Navigation
When combobox is closed and focused:
diff --git a/docs/angular/src/content/en/components/date-picker.mdx b/docs/angular/src/content/en/components/date-picker.mdx
index 212d989819..30960adadb 100644
--- a/docs/angular/src/content/en/components/date-picker.mdx
+++ b/docs/angular/src/content/en/components/date-picker.mdx
@@ -33,27 +33,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxDatePickerModule` in your **app.module.ts** file.
+### Standalone Component
-
-As the picker uses the , it is also dependent on the **BrowserAnimationsModule** and **optionally** on the **HammerModule** for touch interactions, so they need to be added to the module as well:
-
-
-```typescript
-import { HammerModule } from '@angular/platform-browser';
-import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
-import { IgxDatePickerModule } from 'igniteui-angular/date-picker';
-// import { IgxDatePickerModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxDatePickerModule, BrowserAnimationsModule, HammerModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxDatePickerComponent` as a standalone dependency, or use the [`IGX_DATE_PICKER_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/date-picker/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxDatePickerComponent` is a standalone component. Import it directly or use the `IGX_DATE_PICKER_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -78,7 +60,29 @@ import { IGX_DATE_PICKER_DIRECTIVES } from 'igniteui-angular/date-picker';
export class HomeComponent {}
```
-Now that you have the Ignite UI for Angular Date Picker module or directives imported, you can start using the `igx-date-picker` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxDatePickerModule` in your **app.module.ts**:
+
+```typescript
+import { HammerModule } from '@angular/platform-browser';
+import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
+import { IgxDatePickerModule } from 'igniteui-angular/date-picker';
+// import { IgxDatePickerModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxDatePickerModule, BrowserAnimationsModule, HammerModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxDatePickerModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_DATE_PICKER_DIRECTIVES` or `IgxDatePickerComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Date Picker directives imported, you can start using the `igx-date-picker` component.
## Using the Angular Date Picker Component
@@ -283,6 +287,85 @@ In reactive forms, we can handle the and inputs to mark specific days in the calendar. Both accept an array of `DateRangeDescriptor` objects, each with a `type` (`DateRangeType`) and an optional `dateRange` array.
+
+Disabling all weekends and a specific date:
+
+```typescript
+import { DateRangeDescriptor, DateRangeType } from 'igniteui-angular/core';
+// import { DateRangeDescriptor, DateRangeType } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({...})
+export class MyComponent {
+ public disabledDates: DateRangeDescriptor[] = [
+ { type: DateRangeType.Weekends },
+ { type: DateRangeType.Specific, dateRange: [new Date(2024, 11, 25)] }
+ ];
+}
+```
+
+```html
+
+ Select a date
+
+```
+
+Highlighting holidays as special dates:
+
+```typescript
+public specialDates: DateRangeDescriptor[] = [
+ {
+ type: DateRangeType.Specific,
+ dateRange: [
+ new Date(2024, 0, 1), // New Year's Day
+ new Date(2024, 11, 25) // Christmas
+ ]
+ }
+];
+```
+
+```html
+
+ Select a date
+
+```
+
+Available `DateRangeType` values: `After`, `Before`, `Between`, `Specific`, `Weekdays`, `Weekends`.
+
+
+When `disabledDates` includes a range that the user types or selects, the picker emits `validationFailed` and the form control reports a `dateIsDisabled` error.
+
+
+### Events
+
+| Event | Description |
+|-------|-------------|
+| `valueChange` | Emitted when the selected date changes. Provides the new `Date` value. |
+| `validationFailed` | Emitted when the user types an invalid date or a date that falls in `disabledDates`. Provides `prevValue` and `currentValue`. |
+
+```typescript
+import { IDatePickerValidationFailedEventArgs } from 'igniteui-angular/date-picker';
+// import { IDatePickerValidationFailedEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onValueChange(date: Date) {
+ console.log('Selected date:', date);
+}
+
+public onValidationFailed(event: IDatePickerValidationFailedEventArgs) {
+ console.warn('Invalid date entered. Previous value:', event.prevValue);
+}
+```
+
+```html
+
+ Select a date
+
+```
+
### Calendar Specific settings
The uses the [`IgxCalendarComponent`](/calendar) and you can modify some of its settings via the properties that the date picker exposes. Some of these include which allows more than one calendar to be displayed when the picker expands, which determines the starting day of the week, which shows the number for each week in the year and more.
diff --git a/docs/angular/src/content/en/components/date-range-picker.mdx b/docs/angular/src/content/en/components/date-range-picker.mdx
index d7a0a1ff6d..a3b26832e0 100644
--- a/docs/angular/src/content/en/components/date-range-picker.mdx
+++ b/docs/angular/src/content/en/components/date-range-picker.mdx
@@ -30,28 +30,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxDateRangePickerModule` in your **app.module.ts** file.
+### Standalone Component
-As the uses the , it also has a dependency on the **BrowserAnimationsModule** and **optionally** the **HammerModule** for touch interactions, so they need to be added to the `AppModule` as well:
-
-```typescript
-// app.module.ts
-
-import { IgxDateRangePickerModule } from 'igniteui-angular/date-picker';
-// import { IgxDateRangePickerModule } from '@infragistics/igniteui-angular'; for licensed package
-
-import { HammerModule } from '@angular/platform-browser';
-import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
-
-@NgModule({
- ...
- imports: [..., IgxDateRangePickerModule, BrowserAnimationsModule, HammerModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the as a standalone dependency, or use the [`IGX_DATE_RANGE_PICKER_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/date-range-picker/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxDateRangePickerComponent` is a standalone component. Import it directly or use the `IGX_DATE_RANGE_PICKER_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -72,7 +53,32 @@ import { IGX_DATE_RANGE_PICKER_DIRECTIVES } from 'igniteui-angular/date-picker';
export class HomeComponent {}
```
-Now that you have the Ignite UI for Angular Date Range Picker module or directives imported, you can start using the `igx-date-range-picker` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxDateRangePickerModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxDateRangePickerModule } from 'igniteui-angular/date-picker';
+// import { IgxDateRangePickerModule } from '@infragistics/igniteui-angular'; for licensed package
+
+import { HammerModule } from '@angular/platform-browser';
+import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
+
+@NgModule({
+ ...
+ imports: [..., IgxDateRangePickerModule, BrowserAnimationsModule, HammerModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxDateRangePickerModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_DATE_RANGE_PICKER_DIRECTIVES` or `IgxDateRangePickerComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Date Range Picker directives imported, you can start using the `igx-date-range-picker` component.
## Using the Angular Date Range Picker Component
diff --git a/docs/angular/src/content/en/components/date-time-editor.mdx b/docs/angular/src/content/en/components/date-time-editor.mdx
index 978bcd8efe..dcf72a21c5 100644
--- a/docs/angular/src/content/en/components/date-time-editor.mdx
+++ b/docs/angular/src/content/en/components/date-time-editor.mdx
@@ -30,24 +30,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxDateTimeEditorModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-...
-import { IgxDateTimeEditorModule } from 'igniteui-angular/directives';
-// import { IgxDateTimeEditorModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxDateTimeEditorModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxDateTimeEditorDirective` as a standalone dependency.
+Since `16.0.0`, `IgxDateTimeEditorComponent` is a standalone component. Import it directly or use the `IGX_INPUT_GROUP_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -72,6 +57,28 @@ export class HomeComponent {
}
```
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxDateTimeEditorModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxDateTimeEditorModule } from 'igniteui-angular/directives';
+// import { IgxDateTimeEditorModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxDateTimeEditorModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxDateTimeEditorModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_INPUT_GROUP_DIRECTIVES` or `IgxDateTimeEditorComponent` import instead.
+
+
Now that you have the Ignite UI for Angular Date Time Editor module or directive imported, you can start using the `igxDateTimeEditor` directive.
## Using the Angular Date Time Editor Directive
@@ -238,6 +245,31 @@ You can force the component to select all of the input text on focus using after the directive. The reason for this is both directives operate on the input `focus` event so text selection should happen after the mask is set.
+## Events
+
+| Event | Description | Cancelable |
+|-------|-------------|:----------:|
+| `valueChange` | Emitted when the value changes. Provides the new `Date` or `string` value. | No |
+| `validationFailed` | Emitted when the entered value fails `minValue`/`maxValue` validation. Provides `IgxDateTimeEditorEventArgs` with `oldValue`, `newValue`, and `userInput`. | No |
+
+```typescript
+import { IgxDateTimeEditorEventArgs } from 'igniteui-angular/directives';
+// import { IgxDateTimeEditorEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onValidationFailed(args: IgxDateTimeEditorEventArgs) {
+ console.warn('Invalid value entered:', args.userInput, 'Previous:', args.oldValue);
+}
+```
+
+```html
+
+
+
+```
+
## Styling
For details check out the [`Input Group styling guide`](/input-group#styling).
diff --git a/docs/angular/src/content/en/components/dialog.mdx b/docs/angular/src/content/en/components/dialog.mdx
index b5e706b536..068cdcf4e4 100644
--- a/docs/angular/src/content/en/components/dialog.mdx
+++ b/docs/angular/src/content/en/components/dialog.mdx
@@ -30,24 +30,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxDialogModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-...
-import { IgxDialogModule } from 'igniteui-angular/dialog';
-// import { IgxDialogModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxDialogModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxDialogComponent` as a standalone dependency, or use the [`IGX_DIALOG_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/dialog/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxDialogComponent` is a standalone component. Import it directly or use the `IGX_DIALOG_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -77,7 +62,29 @@ import { IgxRippleDirective } from 'igniteui-angular/directives';
export class HomeComponent {}
```
-Now that you have the Ignite UI for Angular Dialog Window module or directives imported, you can start using the `igx-dialog` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxDialogModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxDialogModule } from 'igniteui-angular/dialog';
+// import { IgxDialogModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxDialogModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxDialogModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_DIALOG_DIRECTIVES` or `IgxDialogComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Dialog Window directives imported, you can start using the `igx-dialog` component.
@@ -250,6 +257,78 @@ params: {
}
```
+### Button Customization
+
+The left and right buttons support `type` (`flat`, `contained`, `fab`) and `ripple` color properties:
+
+```html
+
+
+```
+
+### Two-Way Binding for Open State
+
+The `isOpen` property supports two-way binding, letting you control dialog visibility from the component:
+
+```html
+
+ {/* content */}
+
+```
+
+```typescript
+public isDialogOpen = false;
+
+public openDialog() { this.isDialogOpen = true; }
+public closeDialog() { this.isDialogOpen = false; }
+```
+
+Use the `toggle()` method to flip the state without tracking it manually:
+
+```typescript
+@ViewChild('dialog') dialog: IgxDialogComponent;
+
+public toggleDialog() {
+ this.dialog.toggle();
+}
+```
+
+## Events
+
+| Event | Description | Cancelable |
+|-------|-------------|:----------:|
+| `opening` | Emitted before the dialog opens. | Yes |
+| `opened` | Emitted after the dialog finishes opening. | No |
+| `closing` | Emitted before the dialog closes. | Yes |
+| `closed` | Emitted after the dialog finishes closing. | No |
+| `leftButtonSelect` | Emitted when the left button is clicked. | No |
+| `rightButtonSelect` | Emitted when the right button is clicked. | No |
+
+Use the cancelable `opening` and `closing` events to conditionally prevent the dialog from opening or closing:
+
+```typescript
+import { IDialogCancellableEventArgs } from 'igniteui-angular/dialog';
+// import { IDialogCancellableEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onClosing(event: IDialogCancellableEventArgs) {
+ if (this.hasUnsavedChanges) {
+ event.cancel = true;
+ }
+}
+```
+
+```html
+
+
+```
+
### Trap focus inside dialog
By default when the dialog is opened the Tab key focus is trapped within it, i.e. the focus does not leave the element when the user keeps tabbing through the focusable elements. When the focus leaves the last element, it moves to the first one and vice versa, when SHIFT + TAB is pressed, when the focus leaves the first element, the last element should be focused. In case the dialog does not contain any focusable elements, the focus will be trapped on the dialog container itself. This behavior can be changed by setting the property.
diff --git a/docs/angular/src/content/en/components/divider.mdx b/docs/angular/src/content/en/components/divider.mdx
index 3424e4c4c6..36c595ecc0 100644
--- a/docs/angular/src/content/en/components/divider.mdx
+++ b/docs/angular/src/content/en/components/divider.mdx
@@ -4,6 +4,7 @@ description: Ignite UI for Angular Divider component enables users to separate c
keywords: Ignite UI for Angular, UI controls, Angular widgets, web widgets, UI widgets, Angular, Native Angular Components Suite, Angular UI Components, Native Angular Components Library, Angular Divider component, Angular Divider directive, Angular Divider control
license: MIT
---
+import { Aside } from '@astrojs/starlight/components';
import Sample from 'docs-template/components/mdx/Sample.astro';
import ApiLink from 'docs-template/components/mdx/ApiLink.astro';
@@ -29,24 +30,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxDividerModule` in your **app.module.ts** file.
+### Standalone Directive
-```typescript
-// app.module.ts
-
-...
-import { IgxDividerModule } from 'igniteui-angular/directives';
-// import { IgxDividerModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxDividerModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxDividerDirective` as a standalone dependency.
+Since `16.0.0`, `IgxDividerDirective` is a standalone directive. Import it directly into your component's `imports` array.
```typescript
// home.component.ts
@@ -64,6 +50,28 @@ import { IgxDividerDirective } from 'igniteui-angular/directives';
export class HomeComponent {}
```
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxDividerModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxDividerModule } from 'igniteui-angular/directives';
+// import { IgxDividerModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxDividerModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxDividerModule` is kept for backwards compatibility only. New projects should use the standalone `IgxDividerDirective` import instead.
+
+
Now that you have the Ignite UI for Angular Divider module or directive imported, you can start using the `igx-divider` component.
## Using the Angular Divider
diff --git a/docs/angular/src/content/en/components/drag-drop.mdx b/docs/angular/src/content/en/components/drag-drop.mdx
index 855b8d6756..14db61a49b 100644
--- a/docs/angular/src/content/en/components/drag-drop.mdx
+++ b/docs/angular/src/content/en/components/drag-drop.mdx
@@ -32,24 +32,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxDragDropModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-...
-import { IgxDragDropModule } from 'igniteui-angular/directives';
-// import { IgxDragDropModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxDragDropModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxDragDirective` and `IgxDropDirective` as standalone dependencies, or use the [`IGX_DRAG_DROP_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/directives/drag-drop/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxDragDropComponent` is a standalone component. Import it directly or use the `IGX_DRAG_DROP_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -73,7 +58,29 @@ import { IGX_DRAG_DROP_DIRECTIVES } from 'igniteui-angular/directives';
export class HomeComponent {}
```
-Now that you have the Ignite UI for Angular Drag and Drop module or directives imported, you can start using the `igxDrag` and `igxDrop` directives.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxDragDropModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxDragDropModule } from 'igniteui-angular/directives';
+// import { IgxDragDropModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxDragDropModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxDragDropModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_DRAG_DROP_DIRECTIVES` or `IgxDragDropComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Drag and Drop directives imported, you can start using the `igxDrag` and `igxDrop` directives.
## Using the Angular Drag Directive
diff --git a/docs/angular/src/content/en/components/drop-down-virtual.mdx b/docs/angular/src/content/en/components/drop-down-virtual.mdx
index 07994c6afd..0157bbc6ce 100644
--- a/docs/angular/src/content/en/components/drop-down-virtual.mdx
+++ b/docs/angular/src/content/en/components/drop-down-virtual.mdx
@@ -23,7 +23,22 @@ The Ignite UI for Angular Drop Down component can fully integrate with the [`Igx
### First Steps
In order to configure the drop-down to display a list of virtual items, you need to fulfill some prerequisites.
-First, we need to import the `IgxForOfModule` in the module of the component that will declare our drop-down.
+First, import `IgxForOfDirective` into your component:
+
+```typescript
+import { IgxForOfDirective } from 'igniteui-angular/directives';
+// import { IgxForOfDirective } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-example',
+ standalone: true,
+ imports: [IgxForOfDirective],
+ /* ... */
+})
+export class ExampleComponent {}
+```
+
+Alternatively, for NgModule-based applications:_
```typescript
// app.module.ts
diff --git a/docs/angular/src/content/en/components/drop-down.mdx b/docs/angular/src/content/en/components/drop-down.mdx
index e36dc4bd22..11ae5c29f8 100644
--- a/docs/angular/src/content/en/components/drop-down.mdx
+++ b/docs/angular/src/content/en/components/drop-down.mdx
@@ -32,24 +32,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxDropDownModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-...
-import { IgxDropDownModule } from 'igniteui-angular/drop-down';
-// import { IgxDropDownModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxDropDownModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxDropDownComponent` as a standalone dependency, or use the [`IGX_DROP_DOWN_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/drop-down/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxDropDownComponent` is a standalone component. Import it directly or use the `IGX_DROP_DOWN_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -84,7 +69,29 @@ import { IgxButtonDirective } from 'igniteui-angular/directives';
export class HomeComponent {}
```
-Now that you have the Ignite UI for Angular Drop Down module or directives imported, you can start using the `igx-drop-down` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxDropDownModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxDropDownModule } from 'igniteui-angular/drop-down';
+// import { IgxDropDownModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxDropDownModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxDropDownModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_DROP_DOWN_DIRECTIVES` or `IgxDropDownComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Drop Down directives imported, you can start using the `igx-drop-down` component.
## Using the Angular Drop Down
@@ -486,6 +493,39 @@ When the `allowItemsFocus` property is enabled, the drop down items gain tab ind
```
+## Events
+
+The Drop Down component emits the following events:
+
+| Event | Description | Cancelable |
+|-------|-------------|:----------:|
+| `opening` | Emitted before the dropdown opens. | Yes |
+| `opened` | Emitted after the dropdown finishes opening. | No |
+| `closing` | Emitted before the dropdown closes. | Yes |
+| `closed` | Emitted after the dropdown finishes closing. | No |
+| `selectionChanging` | Emitted before the selected item changes. Provides `oldSelection` and `newSelection`. | Yes |
+
+Use the cancelable `selectionChanging` event to prevent certain items from being selected:
+
+```typescript
+import { ISelectionEventArgs } from 'igniteui-angular/drop-down';
+// import { ISelectionEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onSelectionChanging(event: ISelectionEventArgs) {
+ if (event.newSelection?.disabled) {
+ event.cancel = true;
+ }
+}
+```
+
+```html
+
+
+ {{ item.field }}
+
+
+```
+
## Styling
### Dropdown Theme Property Map
diff --git a/docs/angular/src/content/en/components/expansion-panel.mdx b/docs/angular/src/content/en/components/expansion-panel.mdx
index 111a84ce2b..355de1a040 100644
--- a/docs/angular/src/content/en/components/expansion-panel.mdx
+++ b/docs/angular/src/content/en/components/expansion-panel.mdx
@@ -34,23 +34,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxExpansionPanelModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-...
-import { IgxExpansionPanelModule } from 'igniteui-angular/expansion-panel';
-// import { IgxExpansionPanelModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxExpansionPanelModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxExpansionPanelComponent` as a standalone dependency, or use the [`IGX_EXPANSION_PANEL_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/expansion-panel/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxExpansionPanelComponent` is a standalone component. Import it directly or use the `IGX_EXPANSION_PANEL_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -86,7 +72,28 @@ import { IGX_EXPANSION_PANEL_DIRECTIVES } from 'igniteui-angular/expansion-panel
export class HomeComponent {}
```
-Now that you have the Ignite UI for Angular Expansion Panel module or directives imported, you can start using the `igx-expansion-panel` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxExpansionPanelModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+import { IgxExpansionPanelModule } from 'igniteui-angular/expansion-panel';
+// import { IgxExpansionPanelModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxExpansionPanelModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxExpansionPanelModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_EXPANSION_PANEL_DIRECTIVES` or `IgxExpansionPanelComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Expansion Panel directives imported, you can start using the `igx-expansion-panel` component.
## Using the Angular Expansion Panel
@@ -148,7 +155,7 @@ export class ExpansionPanelComponent {
```html
{/* in expansion-component.component.html */}
-
+
```
Below we have the results:
@@ -214,6 +221,62 @@ Lets see the result from all the above changes:
+## Programmatic Control
+
+Use `expand()`, `collapse()`, or `toggle()` to control the panel state from TypeScript:
+
+```typescript
+import { IgxExpansionPanelComponent } from 'igniteui-angular/expansion-panel';
+// import { IgxExpansionPanelComponent } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({...})
+export class MyComponent {
+ @ViewChild(IgxExpansionPanelComponent)
+ public panel: IgxExpansionPanelComponent;
+
+ public expandPanel() { this.panel.expand(); }
+ public collapsePanel() { this.panel.collapse(); }
+ public togglePanel() { this.panel.toggle(); }
+}
+```
+
+The `collapsed` input also supports two-way binding:
+
+```html
+
+ Title
+ Content
+
+```
+
+## Events
+
+| Event | Description | Cancelable |
+|-------|-------------|:----------:|
+| `contentExpanding` | Emitted before the panel expands. | Yes |
+| `contentExpanded` | Emitted after the panel finishes expanding. | No |
+| `contentCollapsing` | Emitted before the panel collapses. | Yes |
+| `contentCollapsed` | Emitted after the panel finishes collapsing. | No |
+
+Use `contentExpanding` to conditionally prevent expansion:
+
+```typescript
+import { IExpansionPanelCancelableEventArgs } from 'igniteui-angular/expansion-panel';
+// import { IExpansionPanelCancelableEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onExpanding(event: IExpansionPanelCancelableEventArgs) {
+ if (this.isLocked) {
+ event.cancel = true;
+ }
+}
+```
+
+```html
+
+ ...
+
+```
+
## Styling
### Expansion Panel Theme Property Map
diff --git a/docs/angular/src/content/en/components/for-of.mdx b/docs/angular/src/content/en/components/for-of.mdx
index 92256cd275..be9df00ce9 100644
--- a/docs/angular/src/content/en/components/for-of.mdx
+++ b/docs/angular/src/content/en/components/for-of.mdx
@@ -4,6 +4,7 @@ description: Ignite UI for Angular now exposes a virtual igxFor directive simila
keywords: Angular Virtual ForOf Directive, Native Angular Components Suite, Angular UI Components, Native Angular Components Library, Virtualization, Performance, Virtual directive, Angular Virtual For
license: MIT
---
+import { Aside } from '@astrojs/starlight/components';
import Sample from 'docs-template/components/mdx/Sample.astro';
import ApiLink from 'docs-template/components/mdx/ApiLink.astro';
@@ -29,25 +30,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxForOfModule` in your **app.module.ts** file.
+### Standalone Directive
-```typescript
-// app.module.ts
-
-import { IgxForOfModule } from 'igniteui-angular/directives';
-// import { IgxForOfModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- imports: [
- ...
- IgxForOfModule,
- ...
- ]
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxForOfDirective` as a standalone dependency.
+Since `16.0.0`, `IgxForOfDirective` is a standalone directive. Import it directly into your component's `imports` array.
```typescript
// home.component.ts
@@ -71,7 +56,31 @@ export class HomeComponent {
}
```
-Now that you have the Ignite UI for Angular Tree Grid module or directives imported, you can start using the `igxFor` directive.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxForOfModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxForOfModule } from 'igniteui-angular/directives';
+// import { IgxForOfModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ imports: [
+ ...
+ IgxForOfModule,
+ ...
+ ]
+})
+export class AppModule {}
+```
+
+
+`IgxForOfModule` is kept for backwards compatibility only. New projects should use the standalone `IgxForOfDirective` import instead.
+
+
+Now that you have the Ignite UI for Angular Tree Grid directives imported, you can start using the `igxFor` directive.
## Using the Angular Virtual ForOf
diff --git a/docs/angular/src/content/en/components/general/how-to/how-to-customize-theme.mdx b/docs/angular/src/content/en/components/general/how-to/how-to-customize-theme.mdx
index f2121d0fd8..dbcba38379 100644
--- a/docs/angular/src/content/en/components/general/how-to/how-to-customize-theme.mdx
+++ b/docs/angular/src/content/en/components/general/how-to/how-to-customize-theme.mdx
@@ -270,6 +270,23 @@ As you can see, our styles size is reduced to almost half it's original size. Th
We will start by creating a new module and a new routing module in the folder with the employees component in our app.
+```typescript
+import { IgxButtonDirective } from 'igniteui-angular/directives';
+import { IGX_COMBO_DIRECTIVES } from 'igniteui-angular/combo';
+import { IGX_TREE_GRID_DIRECTIVES } from 'igniteui-angular/grids/tree-grid';
+// import { IgxButtonDirective, IGX_COMBO_DIRECTIVES, IGX_TREE_GRID_DIRECTIVES } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-example',
+ standalone: true,
+ imports: [IgxButtonDirective, IGX_COMBO_DIRECTIVES, IGX_TREE_GRID_DIRECTIVES],
+ /* ... */
+})
+export class ExampleComponent {}
+```
+
+Alternatively, for NgModule-based applications:_
+
```typescript
// employees.module.ts
import { NgModule } from '@angular/core';
diff --git a/docs/angular/src/content/en/components/grid/grid.mdx b/docs/angular/src/content/en/components/grid/grid.mdx
index 860f72880b..dbe5cde36b 100644
--- a/docs/angular/src/content/en/components/grid/grid.mdx
+++ b/docs/angular/src/content/en/components/grid/grid.mdx
@@ -82,25 +82,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxGridModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-import { IgxGridModule } from 'igniteui-angular/grids/grid';
-// import { IgxGridModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- imports: [
- ...
- IgxGridModule,
- ...
- ]
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxGridComponent` as a standalone dependency, or use the [`IGX_GRID_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/grids/grid/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxGridComponent` is a standalone component. Import it directly or use the `IGX_GRID_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -121,7 +105,31 @@ export class HomeComponent {
}
```
-Now that you have the Ignite UI for Angular Grid module or directives imported, you can start using the `igx-grid` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxGridModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxGridModule } from 'igniteui-angular/grids/grid';
+// import { IgxGridModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ imports: [
+ ...
+ IgxGridModule,
+ ...
+ ]
+})
+export class AppModule {}
+```
+
+
+`IgxGridModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_GRID_DIRECTIVES` or `IgxGridComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Grid directives imported, you can start using the `igx-grid` component.
## Using the Angular Data Grid
diff --git a/docs/angular/src/content/en/components/hierarchicalgrid/hierarchical-grid.mdx b/docs/angular/src/content/en/components/hierarchicalgrid/hierarchical-grid.mdx
index 4fde888c41..2cf4456930 100644
--- a/docs/angular/src/content/en/components/hierarchicalgrid/hierarchical-grid.mdx
+++ b/docs/angular/src/content/en/components/hierarchicalgrid/hierarchical-grid.mdx
@@ -36,25 +36,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxHierarchicalGridModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-import { IgxHierarchicalGridModule } from 'igniteui-angular/grids/hierarchical-grid';
-// import { IgxHierarchicalGridModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- imports: [
- ...
- IgxHierarchicalGridModule,
- ...
- ]
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxHierarchicalGridComponent` as a standalone dependency, or use the [`IGX_HIERARCHICAL_GRID_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/grids/hierarchical-grid/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxHierarchicalGridComponent` is a standalone component. Import it directly or use the `IGX_HIERARCHICAL_GRID_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -84,7 +68,31 @@ export class HomeComponent {
}
```
-Now that you have the Ignite UI for Angular Hierarchical Grid module or directives imported, you can start using the `igx-hierarchical-grid` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxHierarchicalGridModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxHierarchicalGridModule } from 'igniteui-angular/grids/hierarchical-grid';
+// import { IgxHierarchicalGridModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ imports: [
+ ...
+ IgxHierarchicalGridModule,
+ ...
+ ]
+})
+export class AppModule {}
+```
+
+
+`IgxHierarchicalGridModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_HIERARCHICAL_GRID_DIRECTIVES` or `IgxHierarchicalGridComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Hierarchical Grid directives imported, you can start using the `igx-hierarchical-grid` component.
## Using the Angular Hierarchical Data Grid
diff --git a/docs/angular/src/content/en/components/icon.mdx b/docs/angular/src/content/en/components/icon.mdx
index 3000da0a36..a8d2b3d589 100644
--- a/docs/angular/src/content/en/components/icon.mdx
+++ b/docs/angular/src/content/en/components/icon.mdx
@@ -30,25 +30,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxIconModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-import { IgxIconModule } from 'igniteui-angular/icon';
-// import { IgxIconModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- imports: [
- ...
- IgxIconModule,
- ...
- ]
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxIconComponent` as a standalone dependency.
+Since `16.0.0`, `IgxIconComponent` is a standalone component. Import it directly into your component's `imports` array.
```typescript
// home.component.ts
@@ -68,6 +52,30 @@ export class HomeComponent {
}
```
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxIconModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxIconModule } from 'igniteui-angular/icon';
+// import { IgxIconModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ imports: [
+ ...
+ IgxIconModule,
+ ...
+ ]
+})
+export class AppModule {}
+```
+
+
+`IgxIconModule` is kept for backwards compatibility only. New projects should use the standalone `IgxIconComponent` import instead.
+
+
Now that you have the Ignite UI for Angular Icon module or component imported, you can start using the `igx-icon` component.
## Using the Angular Icon
diff --git a/docs/angular/src/content/en/components/input-group.mdx b/docs/angular/src/content/en/components/input-group.mdx
index b0f2997a95..29c0a7dbcd 100644
--- a/docs/angular/src/content/en/components/input-group.mdx
+++ b/docs/angular/src/content/en/components/input-group.mdx
@@ -28,26 +28,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxInputGroupModule` in your **app.module.ts** file.
+### Standalone Component
-Note that the `IgxInputGroupComponent` also depends on the Angular **FormsModule** in order to have a working Template Driven Form:
-
-```typescript
-// app.module.ts
-
-import { FormsModule } from '@angular/forms';
-import { IgxInputGroupModule } from 'igniteui-angular/input-group';
-// import { IgxInputGroupModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxInputGroupModule, FormsModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxInputGroupComponent` as a standalone dependency, or use the [`IGX_INPUT_GROUP_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/input-group/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxInputGroupComponent` is a standalone component. Import it directly or use the `IGX_INPUT_GROUP_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -77,7 +60,30 @@ export class HomeComponent {
}
```
-Now that you have the Ignite UI for Angular Input Group module or directives imported, you can start using the `igx-input-group` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxInputGroupModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { FormsModule } from '@angular/forms';
+import { IgxInputGroupModule } from 'igniteui-angular/input-group';
+// import { IgxInputGroupModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxInputGroupModule, FormsModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxInputGroupModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_INPUT_GROUP_DIRECTIVES` or `IgxInputGroupComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Input Group directives imported, you can start using the `igx-input-group` component.
To use any of the directives `igxInput`, `igxLabel`, `igx-prefix`, `igx-suffix` or `igx-hint`, you have to wrap them in an `` container.
diff --git a/docs/angular/src/content/en/components/label-input.mdx b/docs/angular/src/content/en/components/label-input.mdx
index 12c8799f0d..f020528913 100644
--- a/docs/angular/src/content/en/components/label-input.mdx
+++ b/docs/angular/src/content/en/components/label-input.mdx
@@ -28,24 +28,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxInputGroupModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-import { FormsModule } from '@angular/forms';
-import { IgxInputGroupModule } from 'igniteui-angular/input-group';
-// import { IgxInputGroupModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxInputGroupModule, FormsModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxLabelDirective`, `IgxInputDirective`, and `IgxInputGroupComponent` as standalone dependencies, or use the [`IGX_INPUT_GROUP_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/input-group/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxInputGroupComponent` is a standalone component. Import it directly or use the `IGX_INPUT_GROUP_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -72,7 +57,30 @@ export class HomeComponent {
}
```
-Now that you have the Ignite UI for Angular Input Group module or directives imported, you can start using the `igxLabel` and `igxInput` directives and the `igx-input-group` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxInputGroupModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { FormsModule } from '@angular/forms';
+import { IgxInputGroupModule } from 'igniteui-angular/input-group';
+// import { IgxInputGroupModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxInputGroupModule, FormsModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxInputGroupModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_INPUT_GROUP_DIRECTIVES` or `IgxInputGroupComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Input Group directives imported, you can start using the `igxLabel` and `igxInput` directives and the `igx-input-group` component.
## Using the Angular Label & Input
diff --git a/docs/angular/src/content/en/components/linear-progress.mdx b/docs/angular/src/content/en/components/linear-progress.mdx
index a62e401a81..f1f16613ed 100644
--- a/docs/angular/src/content/en/components/linear-progress.mdx
+++ b/docs/angular/src/content/en/components/linear-progress.mdx
@@ -30,24 +30,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxProgressBarModule` in the **app.module.ts** file:
+### Standalone Component
-```typescript
-// app.module.ts
-
-...
-import { IgxProgressBarModule } from 'igniteui-angular/progressbar';
-// import { IgxProgressBarModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxProgressBarModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxLinearProgressBarComponent` as a standalone dependency, or use the [`IGX_LINEAR_PROGRESS_BAR_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/progressbar/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxLinearProgressBarComponent` is a standalone component. Import it directly or use the `IGX_LINEAR_PROGRESS_BAR_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -68,7 +53,29 @@ export class HomeComponent {
}
```
-Now that you have the Ignite UI for Angular Progress Bar module or directives imported, you can start using the `igx-linear-bar` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxProgressBarModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxProgressBarModule } from 'igniteui-angular/progressbar';
+// import { IgxProgressBarModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxProgressBarModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxProgressBarModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_LINEAR_PROGRESS_BAR_DIRECTIVES` or `IgxLinearProgressBarComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Progress Bar directives imported, you can start using the `igx-linear-bar` component.
## Using the Angular Linear Progress
diff --git a/docs/angular/src/content/en/components/list.mdx b/docs/angular/src/content/en/components/list.mdx
index fa3d4018e6..7d1cf4053c 100644
--- a/docs/angular/src/content/en/components/list.mdx
+++ b/docs/angular/src/content/en/components/list.mdx
@@ -30,28 +30,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxListModule` in the **app.module.ts** file.
+### Standalone Component
-
-**This component can utilize the [`HammerModule`](https://angular.io/api/platform-browser/HammerModule) **optionally**.It can be imported in the root module of the application in order for touch interactions to work as expected.**.
-
-
-```typescript
-// app.module.ts
-
-import { HammerModule } from '@angular/platform-browser';
-import { IgxListModule } from 'igniteui-angular/list';
-// import { IgxListModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxListModule, HammerModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxListComponent` as a standalone dependency, or use the [`IGX_LIST_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/list/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxListComponent` is a standalone component. Import it directly or use the `IGX_LIST_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -78,7 +59,30 @@ import { IGX_LIST_DIRECTIVES } from 'igniteui-angular/list';
export class HomeComponent {}
```
-Now that you have the Ignite UI for Angular List module or directives imported, you can start using the `igx-list` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxListModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { HammerModule } from '@angular/platform-browser';
+import { IgxListModule } from 'igniteui-angular/list';
+// import { IgxListModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxListModule, HammerModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxListModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_LIST_DIRECTIVES` or `IgxListComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular List directives imported, you can start using the `igx-list` component.
## Using the Angular List
@@ -213,7 +217,24 @@ After all that our Angular list should now look like that:
### Adding Avatar and Icons
-We can use some of our other components in conjunction with the component to enrich the experience and add some functionality. We can have a nice picture avatar to the left of the name and phone values. Additionally, we can add a star icon to the right of them to allow the user to favorite a contact. To do that let's grab the [**IgxAvatar**](/avatar) and [**IgxIcon**](/icon) modules and import them in our app.module.ts file.
+We can use some of our other components in conjunction with the component to enrich the experience and add some functionality. We can have a nice picture avatar to the left of the name and phone values. Additionally, we can add a star icon to the right of them to allow the user to favorite a contact. To do that let's import `IGX_LIST_DIRECTIVES`, `IgxAvatarComponent`, and `IgxIconComponent`:
+
+```typescript
+import { IGX_LIST_DIRECTIVES } from 'igniteui-angular/list';
+import { IgxAvatarComponent } from 'igniteui-angular/avatar';
+import { IgxIconComponent } from 'igniteui-angular/icon';
+// import { IGX_LIST_DIRECTIVES, IgxAvatarComponent, IgxIconComponent } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-example',
+ standalone: true,
+ imports: [IGX_LIST_DIRECTIVES, IgxAvatarComponent, IgxIconComponent],
+ /* ... */
+})
+export class ExampleComponent {}
+```
+
+Alternatively, for NgModule-based applications:_
```typescript
// app.module.ts
@@ -300,7 +321,22 @@ toggleFavorite(item: IgxListItem) {
}
```
-Let's also allow the user to choose the size of the list by using the `--ig-size` CSS custom property. We will do this by importing the `IgxButtonGroupModule` and using the [**IgxButtonGroup**](/button-group) to display all size values. This way whenever one gets selected, we will update the **size** of the list.
+Let's also allow the user to choose the size of the list by using the `--ig-size` CSS custom property. We will do this by importing `IGX_BUTTON_GROUP_DIRECTIVES` and using the [**IgxButtonGroup**](/button-group) to display all size values. This way whenever one gets selected, we will update the **size** of the list.
+
+```typescript
+import { IGX_BUTTON_GROUP_DIRECTIVES } from 'igniteui-angular/button-group';
+// import { IGX_BUTTON_GROUP_DIRECTIVES } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-example',
+ standalone: true,
+ imports: [IGX_BUTTON_GROUP_DIRECTIVES],
+ /* ... */
+})
+export class ExampleComponent {}
+```
+
+Alternatively, for NgModule-based applications:_
```typescript
// app.module.ts
@@ -492,7 +528,23 @@ Let's add an input field to the top in our Angular component template first and
```
-It's time to import the `IgxFilterModule` and the `IgxInputGroupModule` in our app.module.ts file and in our contacts component:
+It's time to import `IgxFilterDirective`, `IGX_INPUT_GROUP_DIRECTIVES`, and in our contacts component:
+
+```typescript
+import { IgxFilterDirective } from 'igniteui-angular/directives';
+import { IGX_INPUT_GROUP_DIRECTIVES } from 'igniteui-angular/input-group';
+// import { IgxFilterDirective, IGX_INPUT_GROUP_DIRECTIVES } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-example',
+ standalone: true,
+ imports: [IgxFilterDirective, IGX_INPUT_GROUP_DIRECTIVES],
+ /* ... */
+})
+export class ExampleComponent {}
+```
+
+Alternatively, for NgModule-based applications:_
```typescript
// app.module.ts
diff --git a/docs/angular/src/content/en/components/mask.mdx b/docs/angular/src/content/en/components/mask.mdx
index 2adcf139d6..31e45aabaa 100644
--- a/docs/angular/src/content/en/components/mask.mdx
+++ b/docs/angular/src/content/en/components/mask.mdx
@@ -28,29 +28,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxMaskModule` and `IgxInputGroupModule` in your **app.module.ts** file.
+### Standalone Component
-
- directive is used on an input of type **text**.
-
-
-```typescript
-// app.module.ts
-
-...
-import { IgxMaskModule } from 'igniteui-angular/input-group';
-import { IgxInputGroupModule } from 'igniteui-angular/input-group';
-// import { IgxMaskModule, IgxInputGroupModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxMaskModule, IgxInputGroupModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxMaskDirective` as a standalone dependency.
+Since `16.0.0`, `IgxMaskDirective` is a standalone component. Import it directly or use the `IGX_INPUT_GROUP_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -76,6 +56,29 @@ import { IgxMaskDirective, IGX_INPUT_GROUP_DIRECTIVES } from 'igniteui-angular/i
export class HomeComponent {}
```
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxMaskModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxMaskModule } from 'igniteui-angular/input-group';
+import { IgxInputGroupModule } from 'igniteui-angular/input-group';
+// import { IgxMaskModule, IgxInputGroupModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxMaskModule, IgxInputGroupModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxMaskModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_INPUT_GROUP_DIRECTIVES` or `IgxMaskDirective` import instead.
+
+
Now that you have the Ignite UI for Angular Mask module or directive imported, you can start using the `igxMask` directive.
## Using the Angular Mask
@@ -204,7 +207,22 @@ private notify(snackbar, message, input) {
You can force the component to select all of the input text on focus using . Find more info on `igxTextSelection` at [Label & Input](/label-input#focus--text-selection).
-Import the `IgxTextSelectionModule` in your **app.module.ts** file:
+Import `IgxTextSelectionDirective` into your component:
+
+```typescript
+import { IgxTextSelectionDirective } from 'igniteui-angular/directives';
+// import { IgxTextSelectionDirective } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-example',
+ standalone: true,
+ imports: [IgxTextSelectionDirective],
+ /* ... */
+})
+export class ExampleComponent {}
+```
+
+Alternatively, for NgModule-based applications:_
```typescript
...
diff --git a/docs/angular/src/content/en/components/month-picker.mdx b/docs/angular/src/content/en/components/month-picker.mdx
index 86d482557d..bf956a842e 100644
--- a/docs/angular/src/content/en/components/month-picker.mdx
+++ b/docs/angular/src/content/en/components/month-picker.mdx
@@ -30,29 +30,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The first step is to import the `IgxCalendarModule` inside our **app.module.ts** file.
+### Standalone Component
-
-The also depends on the [`BrowserAnimationsModule`](https://angular.io/api/platform-browser/animations/BrowserAnimationsModule) and **optionally** the [`HammerModule`](https://angular.io/api/platform-browser/HammerModule) for touch interactions, so they need to be added to the AppModule as well:
-
-
-```typescript
-// app.module.ts
-...
-import { HammerModule } from '@angular/platform-browser';
-import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
-import { IgxCalendarModule } from 'igniteui-angular/calendar';
-// import { IgxCalendarModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., BrowserAnimationsModule, HammerModule, IgxCalendarModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxMonthPickerComponent` as a standalone dependency, or use the [`IGX_CALENDAR_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/calendar/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxMonthPickerComponent` is a standalone component. Import it directly or use the `IGX_CALENDAR_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -73,6 +53,29 @@ import { IgxMonthPickerComponent } from 'igniteui-angular/calendar';
export class HomeComponent {}
```
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxCalendarModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+import { HammerModule } from '@angular/platform-browser';
+import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
+import { IgxCalendarModule } from 'igniteui-angular/calendar';
+// import { IgxCalendarModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., BrowserAnimationsModule, HammerModule, IgxCalendarModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxCalendarModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_CALENDAR_DIRECTIVES` or `IgxMonthPickerComponent` import instead.
+
+
Now that you have the Ignite UI for Angular Calendar module or Month Picker component imported, you can start using the `igx-month-picker` component.
diff --git a/docs/angular/src/content/en/components/navbar.mdx b/docs/angular/src/content/en/components/navbar.mdx
index aa96b95884..4c96cc93ea 100644
--- a/docs/angular/src/content/en/components/navbar.mdx
+++ b/docs/angular/src/content/en/components/navbar.mdx
@@ -28,23 +28,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The first step is to import the `IgxNavbarModule` inside our **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-import { IgxNavbarModule } from 'igniteui-angular/navbar';
-// import { IgxNavbarModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxNavbarModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxNavbarComponent` as a standalone dependency, or use the [`IGX_NAVBAR_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/navbar/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxNavbarComponent` is a standalone component. Import it directly or use the `IGX_NAVBAR_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -63,7 +49,29 @@ import { IGX_NAVBAR_DIRECTIVES } from 'igniteui-angular/navbar';
export class HomeComponent {}
```
-Now that you have the Ignite UI for Angular Navbar module or directives imported, you can start using the `igx-navbar` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxNavbarModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxNavbarModule } from 'igniteui-angular/navbar';
+// import { IgxNavbarModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxNavbarModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxNavbarModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_NAVBAR_DIRECTIVES` or `IgxNavbarComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Navbar directives imported, you can start using the `igx-navbar` component.
## Using the Angular Navbar
@@ -91,7 +99,24 @@ The
### Add Icon Buttons
-We can make our app a little more functional by adding options for searching, favorites and more. To do that let's grab the [**IgxIconButton**](/icon-button) and [**IgxIcon**](/icon) modules and import them in our **app.module.ts** file.
+We can make our app a little more functional by adding options for searching, favorites and more. To do that let's import `IGX_NAVBAR_DIRECTIVES`, `IgxIconComponent`, and `IgxButtonDirective`:
+
+```typescript
+import { IGX_NAVBAR_DIRECTIVES } from 'igniteui-angular/navbar';
+import { IgxIconComponent } from 'igniteui-angular/icon';
+import { IgxButtonDirective } from 'igniteui-angular/directives';
+// import { IGX_NAVBAR_DIRECTIVES, IgxIconComponent, IgxButtonDirective } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-example',
+ standalone: true,
+ imports: [IGX_NAVBAR_DIRECTIVES, IgxIconComponent, IgxButtonDirective],
+ /* ... */
+})
+export class ExampleComponent {}
+```
+
+Alternatively, for NgModule-based applications:_
```typescript
// app.module.ts
diff --git a/docs/angular/src/content/en/components/navdrawer.mdx b/docs/angular/src/content/en/components/navdrawer.mdx
index 1fa20625b0..c40dab928e 100644
--- a/docs/angular/src/content/en/components/navdrawer.mdx
+++ b/docs/angular/src/content/en/components/navdrawer.mdx
@@ -32,29 +32,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The first step is to import the `IgxNavigationDrawerModule` inside our **app.module.ts** file.
+### Standalone Component
-
-The also depends on the [`BrowserAnimationsModule`](https://angular.io/api/platform-browser/animations/BrowserAnimationsModule) and **optionally** the [`HammerModule`](https://angular.io/api/platform-browser/HammerModule) for touch interactions, so they need to be added to the AppModule as well:
-
-
-```typescript
-// app.module.ts
-...
-import { HammerModule } from '@angular/platform-browser';
-import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
-import { IgxNavigationDrawerModule } from 'igniteui-angular/navigation-drawer';
-// import { IgxNavigationDrawerModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., BrowserAnimationsModule, HammerModule, IgxNavigationDrawerModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxNavigationDrawerComponent` as a standalone dependency, or use the [`IGX_NAVIGATION_DRAWER_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/navigation-drawer/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxNavigationDrawerComponent` is a standalone component. Import it directly or use the `IGX_NAVIGATION_DRAWER_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -105,7 +85,30 @@ export class HomeComponent {
}
```
-Now that you have the Ignite UI for Angular Navigation Drawer module or directives imported, you can start using the `igx-nav-drawer` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxNavigationDrawerModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+import { HammerModule } from '@angular/platform-browser';
+import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
+import { IgxNavigationDrawerModule } from 'igniteui-angular/navigation-drawer';
+// import { IgxNavigationDrawerModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., BrowserAnimationsModule, HammerModule, IgxNavigationDrawerModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxNavigationDrawerModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_NAVIGATION_DRAWER_DIRECTIVES` or `IgxNavigationDrawerComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Navigation Drawer directives imported, you can start using the `igx-nav-drawer` component.
## Using the Angular Navigation Drawer
@@ -450,6 +453,33 @@ The example below presents the capabilities of a hierarchical structure by using
+## Events
+
+| Event | Description | Cancelable |
+|-------|-------------|:----------:|
+| `opening` | Emitted before the drawer starts opening. | No |
+| `opened` | Emitted after the drawer finishes opening. | No |
+| `closing` | Emitted before the drawer starts closing. | No |
+| `closed` | Emitted after the drawer finishes closing. | No |
+| `pinChange` | Emitted when the pin state changes. Supports two-way binding on `pin`. | No |
+
+```typescript
+public onDrawerOpened() {
+ console.log('Navigation drawer opened');
+}
+
+public onDrawerClosed() {
+ console.log('Navigation drawer closed');
+}
+```
+
+```html
+
+
+```
+
## Styling
diff --git a/docs/angular/src/content/en/components/paginator.mdx b/docs/angular/src/content/en/components/paginator.mdx
index ce885295df..30f0fd51ab 100644
--- a/docs/angular/src/content/en/components/paginator.mdx
+++ b/docs/angular/src/content/en/components/paginator.mdx
@@ -4,6 +4,7 @@ description: Configure Angular pagination and create custom pages in the Angular
keywords: angular paginator, angular paginator component, angular ui components, igniteui for angular, infragistics
license: MIT
---
+import { Aside } from '@astrojs/starlight/components';
import Sample from 'docs-template/components/mdx/Sample.astro';
import ApiLink from 'docs-template/components/mdx/ApiLink.astro';
@@ -34,23 +35,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxPaginatorModule` in the **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-import { IgxPaginatorModule } from 'igniteui-angular/paginator';
-// import { IgxPaginatorModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxPaginatorModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxPaginatorComponent` as a standalone dependency, or use the [`IGX_PAGINATOR_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/paginator/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxPaginatorComponent` is a standalone component. Import it directly or use the `IGX_PAGINATOR_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -81,7 +68,29 @@ export class HomeComponent {
}
```
-Now that you have the Ignite UI for Angular Paginator module or directives imported, you can start using the `igx-paginator` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxPaginatorModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxPaginatorModule } from 'igniteui-angular/paginator';
+// import { IgxPaginatorModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxPaginatorModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxPaginatorModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_PAGINATOR_DIRECTIVES` or `IgxPaginatorComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Paginator directives imported, you can start using the `igx-paginator` component.
## Using the Angular Paginator
diff --git a/docs/angular/src/content/en/components/pivotGrid/pivot-grid.mdx b/docs/angular/src/content/en/components/pivotGrid/pivot-grid.mdx
index e2842fb1ad..13d0e824d6 100644
--- a/docs/angular/src/content/en/components/pivotGrid/pivot-grid.mdx
+++ b/docs/angular/src/content/en/components/pivotGrid/pivot-grid.mdx
@@ -37,25 +37,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxPivotGridModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-import { IgxPivotGridModule } from 'igniteui-angular/grids/pivot-grid';
-// import { IgxPivotGridModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- imports: [
- ...
- IgxPivotGridModule,
- ...
- ]
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxPivotGridComponent` as a standalone dependency, or use the [`IGX_PIVOT_GRID_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/grids/pivot-grid/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxPivotGridComponent` is a standalone component. Import it directly or use the `IGX_PIVOT_GRID_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -79,7 +63,31 @@ export class HomeComponent {
}
```
-Now that you have the Ignite UI for Angular Pivot Grid module or directives imported, you can start using the `igx-pivot-grid` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxPivotGridModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxPivotGridModule } from 'igniteui-angular/grids/pivot-grid';
+// import { IgxPivotGridModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ imports: [
+ ...
+ IgxPivotGridModule,
+ ...
+ ]
+})
+export class AppModule {}
+```
+
+
+`IgxPivotGridModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_PIVOT_GRID_DIRECTIVES` or `IgxPivotGridComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Pivot Grid directives imported, you can start using the `igx-pivot-grid` component.
## Using the Angular Pivot Grid
diff --git a/docs/angular/src/content/en/components/query-builder.mdx b/docs/angular/src/content/en/components/query-builder.mdx
index 2c6d950455..2efb4e1550 100644
--- a/docs/angular/src/content/en/components/query-builder.mdx
+++ b/docs/angular/src/content/en/components/query-builder.mdx
@@ -36,23 +36,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxQueryBuilderModule` in the **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-import { IgxQueryBuilderModule } from 'igniteui-angular/query-builder';
-// import { IgxQueryBuilderModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxQueryBuilderModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxQueryBuilderComponent` as a standalone dependency, or use the [`IGX_QUERY_BUILDER_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/query-builder/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxQueryBuilderComponent` is a standalone component. Import it directly or use the `IGX_QUERY_BUILDER_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -85,7 +71,29 @@ export class HomeComponent {
}
```
-Now that you have the Ignite UI for Angular Query Builder module or directives imported, you can start using the `igx-query-builder` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxQueryBuilderModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxQueryBuilderModule } from 'igniteui-angular/query-builder';
+// import { IgxQueryBuilderModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxQueryBuilderModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxQueryBuilderModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_QUERY_BUILDER_DIRECTIVES` or `IgxQueryBuilderComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Query Builder directives imported, you can start using the `igx-query-builder` component.
## Using the Angular Query Builder
diff --git a/docs/angular/src/content/en/components/radio-button.mdx b/docs/angular/src/content/en/components/radio-button.mdx
index 832a3510d1..20e757066e 100644
--- a/docs/angular/src/content/en/components/radio-button.mdx
+++ b/docs/angular/src/content/en/components/radio-button.mdx
@@ -32,26 +32,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxRadioModule` in the **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-...
-import { IgxRadioModule } from 'igniteui-angular/radio';
-// import { IgxRadioModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxRadioModule],
- ...
-})
-export class AppModule {
- public selected: any;
-}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxRadioGroupDirective` and `IgxRadioComponent` as standalone dependencies, or use the [`IGX_RADIO_GROUP_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/directives/radio/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxRadioGroupDirective` is a standalone component. Import it directly or use the `IGX_RADIO_GROUP_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -80,7 +63,31 @@ export class HomeComponent {
}
```
-Now that you have the Ignite UI for Angular Radio Button module or directives imported, you can start using the `igx-radio-group` directive and `igx-radio` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxRadioModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxRadioModule } from 'igniteui-angular/radio';
+// import { IgxRadioModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxRadioModule],
+ ...
+})
+export class AppModule {
+ public selected: any;
+}
+```
+
+
+`IgxRadioModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_RADIO_GROUP_DIRECTIVES` or `IgxRadioGroupDirective` import instead.
+
+
+Now that you have the Ignite UI for Angular Radio Button directives imported, you can start using the `igx-radio-group` directive and `igx-radio` component.
## Using the Angular Radio Button
@@ -145,6 +152,53 @@ The final result would be something like that:
+### Programmatic Selection
+
+Use `select()` and `deselect()` to control radio state from TypeScript without relying on template binding:
+
+```typescript
+import { IgxRadioComponent } from 'igniteui-angular/radio';
+// import { IgxRadioComponent } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({...})
+export class MyComponent {
+ @ViewChild('radio') radio: IgxRadioComponent;
+
+ public checkOption() {
+ this.radio.select();
+ }
+
+ public uncheckOption() {
+ this.radio.deselect();
+ }
+}
+```
+
+```html
+Option 1
+```
+
+### Change Event
+
+Both `igx-radio` (inheriting `CheckboxBaseDirective`) and `igx-radio-group` emit a `change` event when the selection changes:
+
+```typescript
+import { IChangeCheckboxEventArgs } from 'igniteui-angular/checkbox';
+// import { IChangeCheckboxEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onRadioChange(event: IChangeCheckboxEventArgs) {
+ console.log('Selected value:', event.value);
+ console.log('Radio component:', event.owner);
+}
+```
+
+```html
+
+ Option A
+ Option B
+
+```
+
## Styling
### Radio Theme Property Map
@@ -284,7 +338,22 @@ The Ignite UI for Angular Radio Group directive provides a grouping container th
### Usage
-The Radio Group Directive is exported as an `NgModule`, thus all you need to do in your application is to import the `IgxRadioModule` in the **app.module.ts** file:
+To use the Radio Group in your application, import `IGX_RADIO_GROUP_DIRECTIVES`:
+
+```typescript
+import { IGX_RADIO_GROUP_DIRECTIVES } from 'igniteui-angular/radio';
+// import { IGX_RADIO_GROUP_DIRECTIVES } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-example',
+ standalone: true,
+ imports: [IGX_RADIO_GROUP_DIRECTIVES],
+ /* ... */
+})
+export class ExampleComponent {}
+```
+
+Alternatively, for NgModule-based applications:_
```typescript
// app.module.ts
diff --git a/docs/angular/src/content/en/components/rating.mdx b/docs/angular/src/content/en/components/rating.mdx
index 566fb538ad..6c7031a8eb 100644
--- a/docs/angular/src/content/en/components/rating.mdx
+++ b/docs/angular/src/content/en/components/rating.mdx
@@ -66,24 +66,6 @@ With these you can now add the Rating component in an Angular component template
In Angular forms, components often need to be able to bind their values with `ngModel` or use `formControl` which requires an implementation of Angular's `ControlValueAccessor` interface. Ignite UI for Angular package provides such implementation in the form of a directive that uses an element selector to attach to supported web components. Currently `IgcRating` is the only component that it supports. To use the directive you just need to import `IgcFormsModule` from the library.
-```typescript
-import { IgcFormsModule } from 'igniteui-angular/directives';
-// import { IgcFormsModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- imports: [
- IgcFormsModule
- ]
-})
-export class AppModule { }
-```
-
-
-If you are importing `IgcFormsModule` and using either `ngModel` or `formControl`, you no longer need to include `CUSTOM_ELEMENTS_SCHEMA` as Angular will recognize the `igc-rating` tag by the custom `ControlValueAccessor` directive.
-
-
-Alternatively, as of `16.0.0` you can import the `IgcFormControlDirective` as a standalone dependency.
-
```typescript
// home.component.ts
@@ -103,6 +85,24 @@ export class HomeComponent {
}
```
+
+If you are using `IgcFormControlDirective` or `IgcFormsModule` with either `ngModel` or `formControl`, you no longer need to include `CUSTOM_ELEMENTS_SCHEMA` as Angular will recognize the `igc-rating` tag by the custom `ControlValueAccessor` directive.
+
+
+Alternatively, for NgModule-based applications:_
+
+```typescript
+import { IgcFormsModule } from 'igniteui-angular/directives';
+// import { IgcFormsModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ imports: [
+ IgcFormsModule
+ ]
+})
+export class AppModule { }
+```
+
Add a rating with e.g. ngModel for value and it will two-way bind with your model without issues.
```html
diff --git a/docs/angular/src/content/en/components/ripple.mdx b/docs/angular/src/content/en/components/ripple.mdx
index 7aecf3011b..2607c947dd 100644
--- a/docs/angular/src/content/en/components/ripple.mdx
+++ b/docs/angular/src/content/en/components/ripple.mdx
@@ -33,25 +33,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxRippleModule` in the **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-import { IgxRippleModule } from 'igniteui-angular/directives';
-// import { IgxRippleModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- imports: [
- ...
- IgxRippleModule,
- ...
- ]
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxRippleDirective` as standalone dependencies.
+Since `16.0.0`, `IgxRippleDirective` is a standalone component. Import it directly into your component's `imports` array.
```typescript
// home.component.ts
@@ -70,6 +54,30 @@ import { IgxButtonDirective } from 'igniteui-angular/button';
export class HomeComponent {}
```
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxRippleModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxRippleModule } from 'igniteui-angular/directives';
+// import { IgxRippleModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ imports: [
+ ...
+ IgxRippleModule,
+ ...
+ ]
+})
+export class AppModule {}
+```
+
+
+`IgxRippleModule` is kept for backwards compatibility only. New projects should use the standalone `IgxRippleDirective` import instead.
+
+
Now that you have the Ignite UI for Angular Ripple module or directive imported, you can start using the `igxRipple` directive.
diff --git a/docs/angular/src/content/en/components/select.mdx b/docs/angular/src/content/en/components/select.mdx
index b1e2333660..c63754e496 100644
--- a/docs/angular/src/content/en/components/select.mdx
+++ b/docs/angular/src/content/en/components/select.mdx
@@ -28,22 +28,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxSelectModule` in the **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-...
-import { IgxSelectModule } from 'igniteui-angular/select';
-// import { IgxSelectModule } from '@infragistics/igniteui-angular'; for licensed package
-@NgModule({
- ...
- imports: [..., IgxSelectModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxSelectComponent` as a standalone dependency, or use the [`IGX_SELECT_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/select/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxSelectComponent` is a standalone component. Import it directly or use the `IGX_SELECT_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -73,7 +60,27 @@ export class HomeComponent {
}
```
-Now that you have the Ignite UI for Angular Select module or directives imported, you can start using the `igx-select` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxSelectModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+import { IgxSelectModule } from 'igniteui-angular/select';
+// import { IgxSelectModule } from '@infragistics/igniteui-angular'; for licensed package
+@NgModule({
+ ...
+ imports: [..., IgxSelectModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxSelectModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_SELECT_DIRECTIVES` or `IgxSelectComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Select directives imported, you can start using the `igx-select` component.
## Using the Angular Select
@@ -366,6 +373,38 @@ export class MyClass implements OnInit {
If you pass in your custom settings both as an argument in the `open` function and in the template, `igx-select` will use the one provided in the `open` function. However, if you bind the settings to an internal event, such as `opening` or `opened` then `igx-select` will use the settings that are provided in the template.
+## Events
+
+The Select component emits the following events:
+
+| Event | Description | Cancelable |
+|-------|-------------|:----------:|
+| `opening` | Emitted before the dropdown panel opens. | Yes |
+| `opened` | Emitted after the dropdown panel finishes opening. | No |
+| `closing` | Emitted before the dropdown panel closes. | Yes |
+| `closed` | Emitted after the dropdown panel finishes closing. | No |
+| `selectionChanging` | Emitted before the selected item changes. Provides `oldSelection` and `newSelection`. | Yes |
+
+Use the cancelable `selectionChanging` event to validate or prevent a selection:
+
+```typescript
+import { ISelectionEventArgs } from 'igniteui-angular/drop-down';
+// import { ISelectionEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onSelectionChanging(event: ISelectionEventArgs) {
+ if (event.newSelection?.value === 'restricted') {
+ event.cancel = true;
+ }
+}
+```
+
+```html
+
+ Free
+ Restricted
+
+```
+
## Styling
### Select Theme Property Map
diff --git a/docs/angular/src/content/en/components/simple-combo.mdx b/docs/angular/src/content/en/components/simple-combo.mdx
index bf3b8f83dc..aff80857ad 100644
--- a/docs/angular/src/content/en/components/simple-combo.mdx
+++ b/docs/angular/src/content/en/components/simple-combo.mdx
@@ -43,23 +43,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxSimpleComboModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-import { IgxSimpleComboModule } from 'igniteui-angular/simple-combo';
-// import { IgxSimpleComboModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- imports: [
- ...
- IgxSimpleComboModule,
- ...
- ]
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxSimpleComboComponent` as a standalone dependency, or use the [`IGX_SIMPLE_COMBO_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/simple-combo/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxSimpleComboComponent` is a standalone component. Import it directly or use the `IGX_SIMPLE_COMBO_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -78,7 +64,29 @@ import { IGX_SIMPLE_COMBO_DIRECTIVES } from 'igniteui-angular/simple-combo';
export class HomeComponent {}
```
-Now that you have the Ignite UI for Angular Simple ComboBox module or directives imported, you can start using the `igx-simple-combo` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxSimpleComboModule` in your **app.module.ts**:
+
+```typescript
+import { IgxSimpleComboModule } from 'igniteui-angular/simple-combo';
+// import { IgxSimpleComboModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ imports: [
+ ...
+ IgxSimpleComboModule,
+ ...
+ ]
+})
+export class AppModule {}
+```
+
+
+`IgxSimpleComboModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_SIMPLE_COMBO_DIRECTIVES` or `IgxSimpleComboComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Simple ComboBox directives imported, you can start using the `igx-simple-combo` component.
## Using the Angular Simple ComboBox
diff --git a/docs/angular/src/content/en/components/slider/slider.mdx b/docs/angular/src/content/en/components/slider/slider.mdx
index 5f4d821259..25402989ba 100644
--- a/docs/angular/src/content/en/components/slider/slider.mdx
+++ b/docs/angular/src/content/en/components/slider/slider.mdx
@@ -30,28 +30,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxSliderModule` in your **app.module.ts** file.
+### Standalone Component
-
-**This component can utilize the [`HammerModule`](https://angular.io/api/platform-browser/HammerModule) **optionally**. It can be imported in the root module of the application in order for touch interactions to work as expected.**.
-
-
-```typescript
-// app.module.ts
-
-import { HammerModule } from '@angular/platform-browser';
-import { IgxSliderModule } from 'igniteui-angular/slider';
-// import { IgxSliderModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxSliderModule, HammerModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxSliderComponent` as a standalone dependency, or use the [`IGX_SLIDER_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/slider/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxSliderComponent` is a standalone component. Import it directly or use the `IGX_SLIDER_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -73,6 +54,29 @@ export class HomeComponent {
}
```
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxSliderModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { HammerModule } from '@angular/platform-browser';
+import { IgxSliderModule } from 'igniteui-angular/slider';
+// import { IgxSliderModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxSliderModule, HammerModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxSliderModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_SLIDER_DIRECTIVES` or `IgxSliderComponent` import instead.
+
+
When using standalone components, [`HammerModule`](https://angular.io/api/platform-browser/HammerModule) should be imported in the `app.config` file.
```typescript
@@ -91,7 +95,7 @@ export const appConfig: ApplicationConfig = {
};
```
-Now that you have the Ignite UI for Angular Slider module or directives imported, you can start using the `igx-slider` component.
+Now that you have the Ignite UI for Angular Slider directives imported, you can start using the `igx-slider` component.
## Using the Angular Slider
@@ -461,6 +465,41 @@ In the **tickLabel** callback above, we are rounding the **value** of every **pr
+## Events
+
+| Event | Description | Cancelable |
+|-------|-------------|:----------:|
+| `valueChange` | Emitted when the slider value changes. Provides `ISliderValueChangeEventArgs` with `oldValue` and `value`. | No |
+| `lowerValueChange` | Emitted when the lower thumb value changes on a range slider. Provides the new `number` value. | No |
+| `upperValueChange` | Emitted when the upper thumb value changes on a range slider. Provides the new `number` value. | No |
+| `dragFinished` | Emitted when the user finishes dragging a thumb. Provides the final value (`number` or `IRangeSliderValue`). | No |
+
+Use `valueChange` to respond to slider movement:
+
+```typescript
+import { ISliderValueChangeEventArgs } from 'igniteui-angular/slider';
+// import { ISliderValueChangeEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onValueChange(args: ISliderValueChangeEventArgs) {
+ console.log('Previous value:', args.oldValue, 'New value:', args.value);
+}
+```
+
+```html
+
+
+```
+
+For a range slider, use `lowerValueChange` and `upperValueChange` to track individual thumb movements, or use `dragFinished` to act only once the user releases:
+
+```html
+
+
+```
+
## Styling
### Slider Theme Property Map
diff --git a/docs/angular/src/content/en/components/snackbar.mdx b/docs/angular/src/content/en/components/snackbar.mdx
index 3f54d980a5..c3edfba51d 100644
--- a/docs/angular/src/content/en/components/snackbar.mdx
+++ b/docs/angular/src/content/en/components/snackbar.mdx
@@ -32,24 +32,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxSnackbarModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-...
-import { IgxSnackbarModule } from 'igniteui-angular/snackbar';
-// import { IgxSnackbarModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxSnackbarModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxSnackbarComponent` as a standalone dependency.
+Since `16.0.0`, `IgxSnackbarComponent` is a standalone component. Import it directly into your component's `imports` array.
```typescript
// home.component.ts
@@ -74,6 +59,28 @@ import { IgxButtonDirective } from 'igniteui-angular/directives';
export class HomeComponent {}
```
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxSnackbarModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxSnackbarModule } from 'igniteui-angular/snackbar';
+// import { IgxSnackbarModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxSnackbarModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxSnackbarModule` is kept for backwards compatibility only. New projects should use the standalone `IgxSnackbarComponent` import instead.
+
+
Now that you have the Ignite UI for Angular Snackbar module or component imported, you can start using the `igx-snackbar` component.
## Using the Angular Snackbar
@@ -283,6 +290,29 @@ public open(snackbar) {
...
```
+## Events
+
+| Event | Description | Cancelable |
+|-------|-------------|:----------:|
+| `clicked` | Emitted when the snackbar is clicked. Provides the `IgxSnackbarComponent` instance. | No |
+| `animationStarted` | Emitted when the show/hide animation begins. Provides `ToggleViewEventArgs`. | No |
+| `animationDone` | Emitted when the show/hide animation completes. Provides `ToggleViewEventArgs`. | No |
+
+Use `clicked` to add an action when the user interacts with the snackbar:
+
+```typescript
+public onSnackbarClicked(snackbar: IgxSnackbarComponent) {
+ console.log('Snackbar clicked, owner:', snackbar);
+ snackbar.close();
+}
+```
+
+```html
+
+ UNDO
+
+```
+
## Styling
### Snackbar Theme Property Map
diff --git a/docs/angular/src/content/en/components/splitter.mdx b/docs/angular/src/content/en/components/splitter.mdx
index ed665cbf8f..e10ee17695 100644
--- a/docs/angular/src/content/en/components/splitter.mdx
+++ b/docs/angular/src/content/en/components/splitter.mdx
@@ -28,23 +28,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxSplitterModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-...
-import { IgxSplitterModule } from 'igniteui-angular/splitter';
-// import { IgxSplitterModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxSplitterModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxSplitterComponent` as a standalone dependency, or use the [`IGX_SPLITTER_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/splitter/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxSplitterComponent` is a standalone component. Import it directly or use the `IGX_SPLITTER_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -72,7 +58,28 @@ import { IGX_SPLITTER_DIRECTIVES } from 'igniteui-angular/splitter';
export class HomeComponent {}
```
-Now that you have the Ignite UI for Angular Splitter module or directives imported, you can start using the `igx-splitter` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxSplitterModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+import { IgxSplitterModule } from 'igniteui-angular/splitter';
+// import { IgxSplitterModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxSplitterModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxSplitterModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_SPLITTER_DIRECTIVES` or `IgxSplitterComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Splitter directives imported, you can start using the `igx-splitter` component.
## Using the Angular Splitter
@@ -210,6 +217,41 @@ Keyboard navigation is available by default in the splitter component. When you
- `Ctrl + Arrow Left` - Expands/Collapses a pane in a horizontal splitter
- `Ctrl + Arrow Right` - Expands/Collapses a pane in a horizontal splitter
+## Events
+
+The emits the following events during pane resizing:
+
+| Event | Description |
+|-------|-------------|
+| `resizeStart` | Emitted when the user starts dragging a splitter bar. Provides `pane` and `sibling` references. |
+| `resizing` | Emitted continuously while the user is dragging a splitter bar. Provides `pane` and `sibling` references. |
+| `resizeEnd` | Emitted when the user releases the splitter bar. Provides `pane` and `sibling` references. |
+
+Use these events to track or respond to pane size changes:
+
+```typescript
+import { ISplitterBarResizeEventArgs } from 'igniteui-angular/splitter';
+// import { ISplitterBarResizeEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onResizeStart(event: ISplitterBarResizeEventArgs) {
+ console.log('Resizing started. Pane:', event.pane.id);
+}
+
+public onResizeEnd(event: ISplitterBarResizeEventArgs) {
+ console.log('Pane new size:', event.pane.size);
+ this.savePaneLayout();
+}
+```
+
+```html
+
+ Left
+ Right
+
+```
+
## Styling
### Splitter Theme Property Map
diff --git a/docs/angular/src/content/en/components/stepper.mdx b/docs/angular/src/content/en/components/stepper.mdx
index 82c79eb8e4..982fbfa448 100644
--- a/docs/angular/src/content/en/components/stepper.mdx
+++ b/docs/angular/src/content/en/components/stepper.mdx
@@ -35,24 +35,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxStepperModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-...
-import { IgxStepperModule } from 'igniteui-angular/stepper';
-// import { IgxStepperModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxStepperModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxStepperComponent` as a standalone dependency, or use the [`IGX_STEPPER_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/stepper/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxStepperComponent` is a standalone component. Import it directly or use the `IGX_STEPPER_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -84,8 +69,29 @@ export class HomeComponent {
}
```
-Now that you have the Angular Stepper module or directives imported, you can start with a basic configuration of the `igx-stepper` and its steps.
-Now that you have the Angular Stepper module or directives imported, you can start with a basic configuration of the `igx-stepper` and its steps.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxStepperModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxStepperModule } from 'igniteui-angular/stepper';
+// import { IgxStepperModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxStepperModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxStepperModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_STEPPER_DIRECTIVES` or `IgxStepperComponent` import instead.
+
+
+Now that you have the Angular Stepper directives imported, you can start with a basic configuration of the `igx-stepper` and its steps.
## Using the Angular Stepper
@@ -312,6 +318,53 @@ Setting `none` to the both animation type inputs disables stepper animations.
gives you the ability to configure the duration of the transition between the steps. This could be achieved through the property, which takes a number as an argument and it is common to the both orientations.
+## Events
+
+The emits the following events when navigating between steps:
+
+| Event | Description | Cancelable |
+|-------|-------------|:----------:|
+| `activeStepChanging` | Emitted before the active step changes. Provides `newIndex`, `oldIndex`, and `owner`. | Yes |
+| `activeStepChanged` | Emitted after the active step has changed (after the transition animation completes). Provides `index` and `owner`. | No |
+
+Use the cancelable `activeStepChanging` event to prevent backward navigation or apply custom validation:
+
+```typescript
+import { IStepChangingEventArgs } from 'igniteui-angular/stepper';
+// import { IStepChangingEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onActiveStepChanging(event: IStepChangingEventArgs) {
+ // Prevent navigating backwards
+ if (event.newIndex < event.oldIndex) {
+ event.cancel = true;
+ }
+}
+```
+
+```html
+
+ ...
+
+```
+
+Use `activeStepChanged` to react after the navigation animation completes, for example to save progress:
+
+```typescript
+import { IStepChangedEventArgs } from 'igniteui-angular/stepper';
+// import { IStepChangedEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onActiveStepChanged(event: IStepChangedEventArgs) {
+ console.log(`Navigated to step ${event.index}`);
+ this.saveProgress(event.index);
+}
+```
+
+```html
+
+ ...
+
+```
+
## Keyboard Navigation
Angular Stepper provides a rich variety of keyboard interactions to the end-user. This functionality is enabled by default and allows end-users to easily navigate through the steps.
diff --git a/docs/angular/src/content/en/components/switch.mdx b/docs/angular/src/content/en/components/switch.mdx
index a4869adef0..eb7c765be3 100644
--- a/docs/angular/src/content/en/components/switch.mdx
+++ b/docs/angular/src/content/en/components/switch.mdx
@@ -30,24 +30,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxSwitchModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-...
-import { IgxSwitchModule } from 'igniteui-angular/switch';
-// import { IgxSwitchModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxSwitchModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxSwitchComponent` as a standalone dependency.
+Since `16.0.0`, `IgxSwitchComponent` is a standalone component. Import it directly into your component's `imports` array.
```typescript
// home.component.ts
@@ -65,6 +50,28 @@ import { IgxSwitchComponent } from 'igniteui-angular/switch';
export class HomeComponent {}
```
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxSwitchModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxSwitchModule } from 'igniteui-angular/switch';
+// import { IgxSwitchModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxSwitchModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxSwitchModule` is kept for backwards compatibility only. New projects should use the standalone `IgxSwitchComponent` import instead.
+
+
Now that you have the Ignite UI for Angular Switch module or component imported, you can start using the `igx-switch` component.
## Using the Angular Switch
diff --git a/docs/angular/src/content/en/components/tabbar.mdx b/docs/angular/src/content/en/components/tabbar.mdx
index 056b04aae7..ac29c3371f 100644
--- a/docs/angular/src/content/en/components/tabbar.mdx
+++ b/docs/angular/src/content/en/components/tabbar.mdx
@@ -36,24 +36,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxBottomNavModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-...
-import { IgxBottomNavModule } from 'igniteui-angular/bottom-nav';
-// import { IgxBottomNavModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxBottomNavModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxBottomNavComponent` as a standalone dependency, or use the [`IGX_BOTTOM_NAV_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/tabs/bottom-nav/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxBottomNavComponent` is a standalone component. Import it directly or use the `IGX_BOTTOM_NAV_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -94,7 +79,29 @@ import { IgxIconComponent } from 'igniteui-angular/icon';
export class HomeComponent {}
```
-Now that you have the Ignite UI for Angular Bottom Navigation module or directives imported, you can start using the `igx-bottom-nav` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxBottomNavModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxBottomNavModule } from 'igniteui-angular/bottom-nav';
+// import { IgxBottomNavModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxBottomNavModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxBottomNavModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_BOTTOM_NAV_DIRECTIVES` or `IgxBottomNavComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Bottom Navigation directives imported, you can start using the `igx-bottom-nav` component.
## Using the Angular Bottom Navigation
diff --git a/docs/angular/src/content/en/components/tabs.mdx b/docs/angular/src/content/en/components/tabs.mdx
index 58ba416368..6aefbdc0e7 100644
--- a/docs/angular/src/content/en/components/tabs.mdx
+++ b/docs/angular/src/content/en/components/tabs.mdx
@@ -38,24 +38,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxTabsModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-...
-import { IgxTabsModule } from 'igniteui-angular/tabs';
-// import { IgxTabsModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxTabsModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxTabsComponent` as a standalone dependency, or use the [`IGX_TABS_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/tabs/tabs/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxTabsComponent` is a standalone component. Import it directly or use the `IGX_TABS_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -93,7 +78,29 @@ import { IGX_TABS_DIRECTIVES } from 'igniteui-angular/tabs';
export class HomeComponent {}
```
-Now that you have the Ignite UI for Angular Tabs module or directives imported, you can start using the `igx-tabs` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxTabsModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxTabsModule } from 'igniteui-angular/tabs';
+// import { IgxTabsModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxTabsModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxTabsModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_TABS_DIRECTIVES` or `IgxTabsComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Tabs directives imported, you can start using the `igx-tabs` component.
## Using the Angular Tabs
@@ -369,6 +376,54 @@ The above code creates an `igx-tabs` component with three tab items. Each tab it
Please note that the routerLink directive is set to the `igx-tab-header`, not directly to the `igx-tab-item`.
+## Events
+
+The Tabs component emits the following events:
+
+| Event | Description | Cancelable |
+|-------|-------------|:----------:|
+| `selectedIndexChanging` | Emitted before the selected tab index changes. Provides `oldIndex` and `newIndex`. | Yes |
+| `selectedItemChange` | Emitted after the selected tab changes. Provides `oldItem` and `newItem`. | No |
+| `selectedIndexChange` | Emitted to support two-way binding on `[(selectedIndex)]`. | No |
+
+Use `selectedIndexChanging` to guard tab navigation:
+
+```typescript
+import { ITabsSelectedIndexChangingEventArgs } from 'igniteui-angular/tabs';
+// import { ITabsSelectedIndexChangingEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onTabChanging(event: ITabsSelectedIndexChangingEventArgs) {
+ if (event.newIndex === 2 && !this.isUserAllowed) {
+ event.cancel = true;
+ }
+}
+```
+
+```html
+
+ ...
+ ...
+ ...
+
+```
+
+Use two-way binding on `selectedIndex` to track the active tab programmatically:
+
+```html
+
+ ...
+ ...
+
+```
+
+```typescript
+public activeTabIndex = 0;
+
+public goToSecondTab() {
+ this.activeTabIndex = 1;
+}
+```
+
## Styles
### Tabs Theme Property Map
diff --git a/docs/angular/src/content/en/components/texthighlight.mdx b/docs/angular/src/content/en/components/texthighlight.mdx
index 714fc3e7e6..5285781552 100644
--- a/docs/angular/src/content/en/components/texthighlight.mdx
+++ b/docs/angular/src/content/en/components/texthighlight.mdx
@@ -28,23 +28,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxTextHighlightModule` in your **app.module.ts** file.
+### Standalone Directive
-```typescript
-// app.module.ts
-...
-import { IgxTextHighlightModule } from 'igniteui-angular/directives';
-// import { IgxTextHighlightModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [IgxTextHighlightModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxTextHighlightDirective` as a standalone dependency.
+Since `16.0.0`, `IgxTextHighlightDirective` is a standalone directive. Import it directly into your component's `imports` array.
```typescript
// home.component.ts
@@ -75,6 +61,27 @@ export class HomeComponent {
}
```
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxTextHighlightModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+import { IgxTextHighlightModule } from 'igniteui-angular/directives';
+// import { IgxTextHighlightModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [IgxTextHighlightModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxTextHighlightModule` is kept for backwards compatibility only. New projects should use the standalone `IgxTextHighlightDirective` import instead.
+
+
Now that you have the Ignite UI for Angular Text Highlight module or directive imported, you can start using the `igxTextHighlight`.
## Using the Angular Text Highlight Directive
diff --git a/docs/angular/src/content/en/components/time-picker.mdx b/docs/angular/src/content/en/components/time-picker.mdx
index f5a8b1eda4..8f27eb6659 100644
--- a/docs/angular/src/content/en/components/time-picker.mdx
+++ b/docs/angular/src/content/en/components/time-picker.mdx
@@ -36,30 +36,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxTimePickerModule` in your **app.module.ts** file.
+### Standalone Component
-
-The IgxTimePicker is also dependent on both the **BrowserAnimationsModule** and **optionally** the **HammerModule** for touch interactions. They need to be added to the AppModule as well.
-
-
-```typescript
-// app.module.ts
-
-...
-import { HammerModule } from '@angular/platform-browser';
-import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
-import { IgxTimePickerModule } from 'igniteui-angular/time-picker';
-// import { IgxTimePickerModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., BrowserAnimationsModule, HammerModule, IgxTimePickerModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxTimePickerComponent` as a standalone dependency, or use the [`IGX_TIME_PICKER_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/time-picker/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxTimePickerComponent` is a standalone component. Import it directly or use the `IGX_TIME_PICKER_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -81,7 +60,31 @@ export class HomeComponent {
}
```
-Now that you have the Ignite UI for Angular Time Picker module or directives imported, you can start using the `igx-time-picker` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxTimePickerModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { HammerModule } from '@angular/platform-browser';
+import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
+import { IgxTimePickerModule } from 'igniteui-angular/time-picker';
+// import { IgxTimePickerModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., BrowserAnimationsModule, HammerModule, IgxTimePickerModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxTimePickerModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_TIME_PICKER_DIRECTIVES` or `IgxTimePickerComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Time Picker directives imported, you can start using the `igx-time-picker` component.
## Using the Angular Time Picker
@@ -304,6 +307,22 @@ You can specify
+## Events
+
+| Event | Description | Cancelable |
+|-------|-------------|:----------:|
+| `selected` | Emitted when a time value is selected from the drop-down/dialog. | No |
+| `valueChange` | Emitted when the bound value changes. Supports two-way binding. | No |
+| `validationFailed` | Emitted when the user enters a time that falls outside `minValue`/`maxValue`. | No |
+
+Use `validationFailed` to react when the user types an out-of-range time:
+
+```typescript
+import { IgxTimePickerValidationFailedEventArgs } from 'igniteui-angular/time-picker';
+// import { IgxTimePickerValidationFailedEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onValidationFailed(args: IgxTimePickerValidationFailedEventArgs) {
+ console.warn('Invalid time entered:', args.currentValue);
+ // args.owner — the IgxTimePickerComponent instance
+}
+```
+
+```html
+
+
+```
+
## Styling
diff --git a/docs/angular/src/content/en/components/toast.mdx b/docs/angular/src/content/en/components/toast.mdx
index ac68881a11..ff27cb7760 100644
--- a/docs/angular/src/content/en/components/toast.mdx
+++ b/docs/angular/src/content/en/components/toast.mdx
@@ -30,24 +30,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxToastModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-...
-import { IgxToastModule } from 'igniteui-angular/toast';
-// import { IgxToastModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxToastModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxToastComponent` as a standalone dependency.
+Since `16.0.0`, `IgxToastComponent` is a standalone component. Import it directly into your component's `imports` array.
```typescript
// home.component.ts
@@ -72,6 +57,28 @@ export class HomeComponent {
}
```
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxToastModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxToastModule } from 'igniteui-angular/toast';
+// import { IgxToastModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxToastModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxToastModule` is kept for backwards compatibility only. New projects should use the standalone `IgxToastComponent` import instead.
+
+
Now that you have the Ignite UI for Angular Toast module or component imported, you can start using the `igx-toast` component.
## Using the Angular Toast
diff --git a/docs/angular/src/content/en/components/toggle.mdx b/docs/angular/src/content/en/components/toggle.mdx
index b34378a7df..fd3d2a103e 100644
--- a/docs/angular/src/content/en/components/toggle.mdx
+++ b/docs/angular/src/content/en/components/toggle.mdx
@@ -28,24 +28,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxToggleModule` in your **app.module.ts** file.
+### Standalone Directive
-```typescript
-// app.module.ts
-
-...
-import { IgxToggleModule } from 'igniteui-angular/directives';
-// import { IgxToggleModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxToggleModule]
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxToggleDirective` as a standalone dependency.
+Since `16.0.0`, `IgxToggleDirective` is a standalone directive. Import it directly into your component's `imports` array.
```typescript
// home.component.ts
@@ -72,6 +57,28 @@ import { IgxToggleDirective, IgxButtonDirective } from 'igniteui-angular/directi
export class HomeComponent {}
```
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxToggleModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxToggleModule } from 'igniteui-angular/directives';
+// import { IgxToggleModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxToggleModule]
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxToggleModule` is kept for backwards compatibility only. New projects should use the standalone `IgxToggleDirective` import instead.
+
+
Now that you have the Ignite UI for Angular Toggle module or directive imported, you can start using the `igxToggle` directive.
## Using the Angular Toggle Directive
diff --git a/docs/angular/src/content/en/components/tooltip.mdx b/docs/angular/src/content/en/components/tooltip.mdx
index 2e06ed1378..c32ed22bbe 100644
--- a/docs/angular/src/content/en/components/tooltip.mdx
+++ b/docs/angular/src/content/en/components/tooltip.mdx
@@ -29,23 +29,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxTooltipModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-...
-import { IgxTooltipModule } from 'igniteui-angular/tooltip';
-// import { IgxTooltipModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [IgxTooltipModule],
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxTooltipDirective` as a standalone dependency, or use the [`IGX_TOOLTIP_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/directives/src/directives/tooltip/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxTooltipComponent` is a standalone component. Import it directly or use the `IGX_TOOLTIP_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -78,11 +64,48 @@ import { IgxAvatarComponent } from 'igniteui-angular/avatar';
export class HomeComponent {}
```
-Now that you have the Ignite UI for Angular Tooltip module or directives imported, you can start using the `igxTooltip` directive.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxTooltipModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxTooltipModule } from 'igniteui-angular/tooltip';
+// import { IgxTooltipModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [IgxTooltipModule],
+})
+export class AppModule {}
+```
+
+
+`IgxTooltipModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_TOOLTIP_DIRECTIVES` or `IgxTooltipComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Tooltip directives imported, you can start using the `igxTooltip` directive.
## Using the Angular Tooltip
-Let's say we want to create a simple text tooltip like the one above. In our case, we're using our awesome [`IgxAvatar`](/avatar) as the element, so we start by importing the `IgxAvatarModule` first.
+Let's say we want to create a simple text tooltip like the one above. In our case, we're using our awesome [`IgxAvatar`](/avatar) as the element, so we need to import `IGX_TOOLTIP_DIRECTIVES` and `IgxAvatarComponent`:
+
+```typescript
+import { IGX_TOOLTIP_DIRECTIVES } from 'igniteui-angular/directives';
+import { IgxAvatarComponent } from 'igniteui-angular/avatar';
+// import { IGX_TOOLTIP_DIRECTIVES, IgxAvatarComponent } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-example',
+ standalone: true,
+ imports: [IGX_TOOLTIP_DIRECTIVES, IgxAvatarComponent],
+ /* ... */
+})
+export class ExampleComponent {}
+```
+
+Alternatively, for NgModule-based applications:_
```typescript
// app.module.ts
@@ -160,6 +183,23 @@ The conten
Let's expand on the use of the and use it to provide more details for a specific location on a map! We'll use a simple div to represent our map, the [`IgxAvatar`](/avatar) for a logo in our tooltip and the [`IgxIcon`](/icon) for the location icon on our map. For this purpose, we will get their respective modules.
+```typescript
+import { IGX_TOOLTIP_DIRECTIVES } from 'igniteui-angular/directives';
+import { IgxAvatarComponent } from 'igniteui-angular/avatar';
+import { IgxIconComponent } from 'igniteui-angular/icon';
+// import { IGX_TOOLTIP_DIRECTIVES, IgxAvatarComponent, IgxIconComponent } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-example',
+ standalone: true,
+ imports: [IGX_TOOLTIP_DIRECTIVES, IgxAvatarComponent, IgxIconComponent],
+ /* ... */
+})
+export class ExampleComponent {}
+```
+
+Alternatively, for NgModule-based applications:_
+
```typescript
// app.module.ts
@@ -455,6 +495,33 @@ public overlaySettings: OverlaySettings = {
```
+## Events
+
+| Event | Description | Cancelable |
+|-------|-------------|:----------:|
+| `tooltipShow` | Emitted before the tooltip starts showing. Provides `ITooltipShowEventArgs` with `target`, `tooltip`, and `cancel`. | Yes |
+| `tooltipHide` | Emitted before the tooltip starts hiding. Provides `ITooltipHideEventArgs` with `target`, `tooltip`, and `cancel`. | Yes |
+
+Use `tooltipShow` to delay or prevent a tooltip from appearing:
+
+```typescript
+import { ITooltipShowEventArgs } from 'igniteui-angular/directives';
+// import { ITooltipShowEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onTooltipShow(args: ITooltipShowEventArgs) {
+ if (this.tooltipsDisabled) {
+ args.cancel = true;
+ }
+}
+```
+
+```html
+
+ info
+
+Tooltip text
+```
+
## Styling
To get started with styling the tooltip, we need to import the `index` file, where all the theme functions and component mixins live:
diff --git a/docs/angular/src/content/en/components/tree.mdx b/docs/angular/src/content/en/components/tree.mdx
index 488c745bce..a2ffef1c6f 100644
--- a/docs/angular/src/content/en/components/tree.mdx
+++ b/docs/angular/src/content/en/components/tree.mdx
@@ -36,24 +36,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxTreeModule` in your app.module file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-...
-import { IgxTreeModule } from 'igniteui-angular/tree';
-// import { IgxTreeModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxTreeModule],
- ...
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxTreeComponent` as a standalone dependency, or use the [`IGX_TREE_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/tree/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxTreeComponent` is a standalone component. Import it directly or use the `IGX_TREE_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -89,7 +74,29 @@ import { IGX_TREE_DIRECTIVES } from 'igniteui-angular/tree';
export class HomeComponent {}
```
-Now that we have the Ignite UI for Angular Tree module or directives imported, let’s get started with a basic configuration of the `igx-tree` and its nodes.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxTreeModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxTreeModule } from 'igniteui-angular/tree';
+// import { IgxTreeModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxTreeModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxTreeModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_TREE_DIRECTIVES` or `IgxTreeComponent` import instead.
+
+
+Now that we have the Ignite UI for Angular Tree directives imported, let’s get started with a basic configuration of the `igx-tree` and its nodes.
## Using the Angular Tree
@@ -324,6 +331,38 @@ The Angular Tree component provides built-in support for checkboxes, allowing us
The TreeView checkboxes also have a tri-state mode, which is applicable only for partially selected parent nodes. In this mode, a parent node will go into the indeterminate state when some but not all of the child nodes are checked.
+## Events
+
+| Event | Description | Cancelable |
+|-------|-------------|:----------:|
+| `nodeSelection` | Emitted when node selection changes. Provides `ITreeNodeSelectionEvent` with `newSelection`, `oldSelection`, `added`, and `removed`. | Yes |
+| `nodeExpanding` | Emitted before a node expands. Provides `ITreeNodeTogglingEventArgs` with `node`. | Yes |
+| `nodeExpanded` | Emitted after a node finishes expanding. | No |
+| `nodeCollapsing` | Emitted before a node collapses. Provides `ITreeNodeTogglingEventArgs` with `node`. | Yes |
+| `nodeCollapsed` | Emitted after a node finishes collapsing. | No |
+| `activeNodeChanged` | Emitted when the active (focused) node changes. Provides the new active `IgxTreeNode`. | No |
+
+Use `nodeExpanding` to prevent certain nodes from expanding:
+
+```typescript
+import { ITreeNodeTogglingEventArgs } from 'igniteui-angular/tree';
+// import { ITreeNodeTogglingEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onNodeExpanding(args: ITreeNodeTogglingEventArgs) {
+ if (args.node.data?.restricted) {
+ args.cancel = true;
+ }
+}
+```
+
+```html
+
+
+ {{ node.label }}
+
+
+```
+
## Keyboard Navigation
Keyboard navigation in IgxTree provides a rich variety of keyboard interactions for the user. This functionality is enabled by default and allows users to navigate through the nodes.
diff --git a/docs/angular/src/content/en/components/treegrid/tree-grid.mdx b/docs/angular/src/content/en/components/treegrid/tree-grid.mdx
index 19da225e57..6f4af6480b 100644
--- a/docs/angular/src/content/en/components/treegrid/tree-grid.mdx
+++ b/docs/angular/src/content/en/components/treegrid/tree-grid.mdx
@@ -32,25 +32,9 @@ ng add igniteui-angular
For a complete introduction to the Ignite UI for Angular, read the [_getting started_](/general/getting-started) topic.
-The next step is to import the `IgxTreeGridModule` in your **app.module.ts** file.
+### Standalone Component
-```typescript
-// app.module.ts
-
-import { IgxTreeGridModule } from 'igniteui-angular/grids/tree-grid';
-// import { IgxTreeGridModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- imports: [
- ...
- IgxTreeGridModule,
- ...
- ]
-})
-export class AppModule {}
-```
-
-Alternatively, as of `16.0.0` you can import the `IgxTreeGridComponent` as a standalone dependency, or use the [`IGX_TREE_GRID_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/grids/tree-grid/public_api.ts) token to import the component and all of its supporting components and directives.
+Since `16.0.0`, `IgxTreeGridComponent` is a standalone component. Import it directly or use the `IGX_TREE_GRID_DIRECTIVES` token, which includes the component and all of its supporting components and directives.
```typescript
// home.component.ts
@@ -71,7 +55,31 @@ export class HomeComponent {
}
```
-Now that you have the Ignite UI for Angular Tree Grid module or directives imported, you can start using the `igx-tree-grid` component.
+### NgModule (Legacy)
+
+For applications using NgModules (Angular versions prior to standalone support), import `IgxTreeGridModule` in your **app.module.ts**:
+
+```typescript
+// app.module.ts
+
+import { IgxTreeGridModule } from 'igniteui-angular/grids/tree-grid';
+// import { IgxTreeGridModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ imports: [
+ ...
+ IgxTreeGridModule,
+ ...
+ ]
+})
+export class AppModule {}
+```
+
+
+`IgxTreeGridModule` is kept for backwards compatibility only. New projects should use the standalone `IGX_TREE_GRID_DIRECTIVES` or `IgxTreeGridComponent` import instead.
+
+
+Now that you have the Ignite UI for Angular Tree Grid directives imported, you can start using the `igx-tree-grid` component.
## Using the Angular Tree Grid
diff --git a/docs/angular/src/content/jp/components/accordion.mdx b/docs/angular/src/content/jp/components/accordion.mdx
index aaeafe46fe..0cf754a23d 100644
--- a/docs/angular/src/content/jp/components/accordion.mdx
+++ b/docs/angular/src/content/jp/components/accordion.mdx
@@ -37,24 +37,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxAccordionModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-
-...
-import { IgxAccordionModule } from 'igniteui-angular/accordion';
-// import { IgxAccordionModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxAccordionModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxAccordionComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_ACCORDION_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/accordion/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxAccordionComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_ACCORDION_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -85,6 +70,29 @@ import { IGX_ACCORDION_DIRECTIVES } from 'igniteui-angular/accordion';
export class HomeComponent {}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxAccordionModule` をインポートします:
+
+```typescript
+// app.module.ts
+
+...
+import { IgxAccordionModule } from 'igniteui-angular/accordion';
+// import { IgxAccordionModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxAccordionModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxAccordionModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_ACCORDION_DIRECTIVES` または `IgxAccordionComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Accordion モジュールまたはディレクティブをインポートしたので、`igx-accordion` とそのパネルの基本構成を開始できます。
## Angular Accordion コンポーネントの使用
diff --git a/docs/angular/src/content/jp/components/action-strip.mdx b/docs/angular/src/content/jp/components/action-strip.mdx
index beeb79c5c3..066eb7c80d 100644
--- a/docs/angular/src/content/jp/components/action-strip.mdx
+++ b/docs/angular/src/content/jp/components/action-strip.mdx
@@ -32,24 +32,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxActionStripModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-
-...
-import { IgxActionStripModule } from 'igniteui-angular/action-strip';
-// import { IgxActionStripModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxActionStripModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxActionStripComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_ACTION_STRIP_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/action-strip/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxActionStripComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_ACTION_STRIP_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -79,6 +64,29 @@ import { IgxIconComponent } from 'igniteui-angular/icon';
export class HomeComponent {}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxActionStripModule` をインポートします:
+
+```typescript
+// app.module.ts
+
+...
+import { IgxActionStripModule } from 'igniteui-angular/action-strip';
+// import { IgxActionStripModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxActionStripModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxActionStripModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_ACTION_STRIP_DIRECTIVES` または `IgxActionStripComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Action Strip モジュールまたはディレクティブをインポートしたので、`igx-action-strip` コンポーネントの基本構成を開始できます。
## Angular Action Strip コンポーネントの使用
diff --git a/docs/angular/src/content/jp/components/autocomplete.mdx b/docs/angular/src/content/jp/components/autocomplete.mdx
index 2d21ced4c4..299b732c22 100644
--- a/docs/angular/src/content/jp/components/autocomplete.mdx
+++ b/docs/angular/src/content/jp/components/autocomplete.mdx
@@ -36,31 +36,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-はじめに、**app.module** で **IgxAutocompleteModule** と **IgxDropDownModule** をインポートします。 が に適用される場合、**igxInputGroupModule** も必要です。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-
-...
-import { IgxAutocompleteModule, IgxDropDownModule } from 'igniteui-angular/drop-down';
-import { IgxInputGroupModule } from 'igniteui-angular/input-group';
-// import { IgxAutocompleteModule, IgxDropDownModule, IgxInputGroupModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [
- ...,
- IgxAutocompleteModule,
- IgxDropDownModule,
- IgxInputGroupModule,
- ....
- ],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxAutocompleteDirective` をスタンドアロンのディレクティブとしてインポートできます。
+`16.0.0` 以降、`IgxAutocompleteDirective` はスタンドアロン ディレクティブです。`IgxAutocompleteDirective` をインポートするか、`IGX_DROP_DOWN_DIRECTIVES` および `IGX_INPUT_GROUP_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -90,7 +68,37 @@ import { IGX_INPUT_GROUP_DIRECTIVES } from 'igniteui-angular/input-group';
export class HomeComponent {}
```
-Ignite UI for Angular Action Strip モジュールまたはディレクティブをインポートしたので、`igxAutocomplete` コンポーネントの基本構成を開始できます。
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module** で `IgxAutocompleteModule`、`IgxDropDownModule`、および `IgxInputGroupModule` をインポートします:
+
+```typescript
+// app.module.ts
+
+...
+import { IgxAutocompleteModule, IgxDropDownModule } from 'igniteui-angular/drop-down';
+import { IgxInputGroupModule } from 'igniteui-angular/input-group';
+// import { IgxAutocompleteModule, IgxDropDownModule, IgxInputGroupModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [
+ ...,
+ IgxAutocompleteModule,
+ IgxDropDownModule,
+ IgxInputGroupModule,
+ ....
+ ],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxAutocompleteModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IgxAutocompleteDirective` のインポートを使用してください。
+
+
+Ignite UI for Angular Autocomplete モジュールまたはディレクティブをインポートしたので、`igxAutocomplete` コンポーネントの基本構成を開始できます。
## Angular Autocomplete の使用
@@ -221,6 +229,30 @@ export class AutocompleteComponent {
+## イベント
+
+| イベント | 説明 | キャンセル可能 |
+|--------|------|:----------:|
+| `selectionChanging` | ドロップダウンからアイテムが選択される前に発生します。`value`、`cancel`、および `owner` を提供します。 | はい |
+
+`selectionChanging` を使用して選択された値をインターセプトまたは変換します。
+
+```typescript
+import { AutocompleteSelectionChangingEventArgs } from 'igniteui-angular/drop-down';
+// import { AutocompleteSelectionChangingEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onSelectionChanging(args: AutocompleteSelectionChangingEventArgs) {
+ if (args.value === 'Restricted City') {
+ args.cancel = true;
+ }
+}
+```
+
+```html
+
+
+```
+
## キーボード ナビゲーション
diff --git a/docs/angular/src/content/jp/components/avatar.mdx b/docs/angular/src/content/jp/components/avatar.mdx
index 74fccefc89..2f7aa559c8 100644
--- a/docs/angular/src/content/jp/components/avatar.mdx
+++ b/docs/angular/src/content/jp/components/avatar.mdx
@@ -32,24 +32,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxAvatarModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-
-...
-import { IgxAvatarModule } from 'igniteui-angular/avatar';
-// import { IgxAvatarModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxAvatarModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxAvatarComponent` をスタンドアロンの依存関係としてインポートできます。
+`16.0.0` 以降、`IgxAvatarComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IgxAvatarComponent` トークンを使用してください。
```typescript
// home.component.ts
@@ -68,6 +53,29 @@ import { IgxAvatarComponent } from 'igniteui-angular/avatar';
export class HomeComponent {}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxAvatarModule` をインポートします:
+
+```typescript
+// app.module.ts
+
+...
+import { IgxAvatarModule } from 'igniteui-angular/avatar';
+// import { IgxAvatarModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxAvatarModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxAvatarModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IgxAvatarComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Avatar モジュールまたはコンポーネントをインポートしたので、`igx-avatar` コンポーネントの基本構成を開始できます。
## Angular Avatar コンポーネントの使用
diff --git a/docs/angular/src/content/jp/components/badge.mdx b/docs/angular/src/content/jp/components/badge.mdx
index 9ffb7b4130..d57d7147eb 100644
--- a/docs/angular/src/content/jp/components/badge.mdx
+++ b/docs/angular/src/content/jp/components/badge.mdx
@@ -31,7 +31,30 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxBadgeModule` をインポートします。
+### スタンドアロン コンポーネント
+
+`16.0.0` 以降、`IgxBadgeComponent` はスタンドアロン コンポーネントです。直接インポートしてください。
+
+```typescript
+// home.component.ts
+
+...
+import { IgxBadgeComponent } from 'igniteui-angular/badge';
+// import { IgxBadgeComponent } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-home',
+ template: ' ',
+ styleUrls: ['home.component.scss'],
+ standalone: true,
+ imports: [IgxBadgeComponent]
+})
+export class HomeComponent {}
+```
+
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxBadgeModule` をインポートします:
```typescript
// app.module.ts
@@ -48,30 +71,31 @@ import { IgxBadgeModule } from 'igniteui-angular/badge';
export class AppModule {}
```
-あるいは、`16.0.0` 以降、`IgxBadgeComponent` をスタンドアロンの依存関係としてインポートできます。
+
+`IgxBadgeModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IgxBadgeComponent` のインポートを使用してください。
+
-```typescript
-// home.component.ts
+Ignite UI for Angular Badge モジュールまたはコンポーネントをインポートしたので、`igx-badge` コンポーネントの基本構成を開始できます。
-...
+## Angular Badge コンポーネントの使用
+
+デモ サンプルの実行方法を見てみましょう。アバターのシンプルな success スタイルのバッジです。これを構築するためには、`IgxBadgeComponent` と `IgxAvatarComponent` をインポートする必要があります。
+
+```typescript
import { IgxBadgeComponent } from 'igniteui-angular/badge';
-// import { IgxBadgeComponent } from '@infragistics/igniteui-angular'; for licensed package
+import { IgxAvatarComponent } from 'igniteui-angular/avatar';
+// import { IgxBadgeComponent, IgxAvatarComponent } from '@infragistics/igniteui-angular'; for licensed package
@Component({
- selector: 'app-home',
- template: ' ',
- styleUrls: ['home.component.scss'],
+ selector: 'app-example',
standalone: true,
- imports: [IgxBadgeComponent]
+ imports: [IgxBadgeComponent, IgxAvatarComponent],
+ /* ... */
})
-export class HomeComponent {}
+export class ExampleComponent {}
```
-Ignite UI for Angular Badge モジュールまたはコンポーネントをインポートしたので、`igx-badge` コンポーネントの基本構成を開始できます。
-
-## Angular Badge コンポーネントの使用
-
-デモ サンプルの実行方法を見てみましょう。アバターのシンプルな success スタイルのバッジです。これを構築するためには、`IgxBadgeModule` とともに `IgxAvatarModule` をインポートする必要があります。
+NgModule ベースのアプリケーションの場合:_
```typescript
// app.module.ts
@@ -89,8 +113,6 @@ import { IgxAvatarModule } from 'igniteui-angular/avatar';
export class AppModule {}
```
-_あるいは、`16.0.0` 以降、`IgxBadgeComponent` と `IgxAvatarComponent` をスタンドアロンの依存関係としてインポートできます。_
-
次に、これらのコンポーネントをテンプレートに追加します。
```html
@@ -172,7 +194,24 @@ export class BadgeIconComponent implements OnInit {
チャット クライアントのような連絡先リストを作成します。連絡先の名前を表示し、アバターおよび連絡先の現在状態 (オンライン、オフライン、退席中) を表示します。これを達成するには、 および コンポーネントを使用します。コンテナーの場合、 が使用されます。
-続行するには、必要なすべてのモジュールを含めて、**app.module.ts** ファイルにインポートします。
+続行するには、必要なコンポーネントをインポートします。
+
+```typescript
+import { IGX_LIST_DIRECTIVES } from 'igniteui-angular/list';
+import { IgxAvatarComponent } from 'igniteui-angular/avatar';
+import { IgxBadgeComponent } from 'igniteui-angular/badge';
+// import { IGX_LIST_DIRECTIVES, IgxAvatarComponent, IgxBadgeComponent } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-example',
+ standalone: true,
+ imports: [IGX_LIST_DIRECTIVES, IgxAvatarComponent, IgxBadgeComponent],
+ /* ... */
+})
+export class ExampleComponent {}
+```
+
+NgModule ベースのアプリケーションの場合:_
```typescript
// app.module.ts
diff --git a/docs/angular/src/content/jp/components/banner.mdx b/docs/angular/src/content/jp/components/banner.mdx
index 9b104ac913..ab367f69a5 100644
--- a/docs/angular/src/content/jp/components/banner.mdx
+++ b/docs/angular/src/content/jp/components/banner.mdx
@@ -31,24 +31,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxBannerModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-
-...
-import { IgxBannerModule } from 'igniteui-angular/banner';
-// import { IgxBannerModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxBannerModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxBannerComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_BANNER_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/banner/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxBannerComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_BANNER_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -72,6 +57,29 @@ import { IGX_BANNER_DIRECTIVES } from 'igniteui-angular/banner';
export class HomeComponent {}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxBannerModule` をインポートします:
+
+```typescript
+// app.module.ts
+
+...
+import { IgxBannerModule } from 'igniteui-angular/banner';
+// import { IgxBannerModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxBannerModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxBannerModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_BANNER_DIRECTIVES` または `IgxBannerComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Banner モジュールまたはディレクティブをインポートしたので、`igx-banner` コンポーネントの基本構成を開始できます。
## Angular Banner コンポーネントの使用
@@ -253,6 +261,35 @@ Google の [`マテリアル デザイン`](https://material.io/design/component
+## イベント
+
+| イベント | 説明 | キャンセル可能 |
+|--------|------|:----------:|
+| `opening` | バナーが開く前に発生します。`banner` と `cancel` を含む `BannerCancelEventArgs` を提供します。 | はい |
+| `opened` | バナーが開き終わった後に発生します。 | いいえ |
+| `closing` | バナーが閉じる前に発生します。`banner` と `cancel` を含む `BannerCancelEventArgs` を提供します。 | はい |
+| `closed` | バナーが閉じ終わった後に発生します。 | いいえ |
+
+`closing` を使用して特定のシナリオでバナーが閉じるのを防ぎます。
+
+```typescript
+import { BannerCancelEventArgs } from 'igniteui-angular/banner';
+// import { BannerCancelEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onBannerClosing(args: BannerCancelEventArgs) {
+ if (this.requiresAcknowledgement) {
+ args.cancel = true;
+ }
+}
+```
+
+```html
+
+ warning
+ 続行する前に利用規約をご確認ください。
+
+```
+
## スタイル設定
はじめに、テーマ エンジンによって公開されている関数を使用するために、スタイル ファイルに index ファイルをインポートする必要があります。
diff --git a/docs/angular/src/content/jp/components/button-group.mdx b/docs/angular/src/content/jp/components/button-group.mdx
index 5d0fb9bd67..0cc0f7c7d4 100644
--- a/docs/angular/src/content/jp/components/button-group.mdx
+++ b/docs/angular/src/content/jp/components/button-group.mdx
@@ -31,24 +31,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxButtonGroupModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-
-...
-import { IgxButtonGroupModule } from 'igniteui-angular/button-group';
-// import { IgxButtonGroupModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxButtonGroupModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxButtonGroupComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_BUTTON_GROUP_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/buttonGroup/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxButtonGroupComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_BUTTON_GROUP_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -84,6 +69,29 @@ import { IgxIconComponent } from 'igniteui-angular/icon';
export class HomeComponent {}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxButtonGroupModule` をインポートします:
+
+```typescript
+// app.module.ts
+
+...
+import { IgxButtonGroupModule } from 'igniteui-angular/button-group';
+// import { IgxButtonGroupModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxButtonGroupModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxButtonGroupModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_BUTTON_GROUP_DIRECTIVES` または `IgxButtonGroupComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Button Group モジュールまたはディレクティブをインポートしたので、`igx-buttongroup` とそのボタンの基本構成を開始できます。
## Angular Button Group コンポーネントの使用
diff --git a/docs/angular/src/content/jp/components/button.mdx b/docs/angular/src/content/jp/components/button.mdx
index 3fef70f5ae..fb11ff28eb 100644
--- a/docs/angular/src/content/jp/components/button.mdx
+++ b/docs/angular/src/content/jp/components/button.mdx
@@ -35,23 +35,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxButtonModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-import { IgxButtonModule } from 'igniteui-angular/button';
-// import { IgxButtonModule } from '@infragistics/igniteui-angular'; for licensed package
-@NgModule({
- imports: [
- ...
- IgxButtonModule,
- ...
- ]
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxButtonDirective` をスタンドアロンの依存関係としてインポートできます。
+`16.0.0` 以降、`IgxButtonDirective` はスタンドアロン コンポーネントです。直接インポートしてください。
```typescript
// home.component.ts
@@ -70,6 +56,28 @@ import { IgxButtonDirective } from 'igniteui-angular/button';
export class HomeComponent {}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxButtonModule` をインポートします:
+
+```typescript
+// app.module.ts
+import { IgxButtonModule } from 'igniteui-angular/button';
+// import { IgxButtonModule } from '@infragistics/igniteui-angular'; for licensed package
+@NgModule({
+ imports: [
+ ...
+ IgxButtonModule,
+ ...
+ ]
+})
+export class AppModule {}
+```
+
+
+`IgxButtonModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IgxButtonDirective` のインポートを使用してください。
+
+
Ignite UI for Angular Button モジュールまたはディレクティブをインポートしたので、要素で `igxButton` ディレクティブの使用を開始できます。
## Angular ボタン タイプ
diff --git a/docs/angular/src/content/jp/components/calendar.mdx b/docs/angular/src/content/jp/components/calendar.mdx
index c0b484e040..31cb8dd143 100644
--- a/docs/angular/src/content/jp/components/calendar.mdx
+++ b/docs/angular/src/content/jp/components/calendar.mdx
@@ -36,7 +36,32 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxCalendarModule` をインポートします。
+### スタンドアロン コンポーネント
+
+`16.0.0` 以降、`IgxCalendarComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_CALENDAR_DIRECTIVES` トークンを使用してください。
+
+```typescript
+// home.component.ts
+
+import { HammerModule } from '@angular/platform-browser';
+import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
+import { IGX_CALENDAR_DIRECTIVES } from 'igniteui-angular/calendar';
+// import { IGX_CALENDAR_DIRECTIVES } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-home',
+ template: ' ',
+ styleUrls: ['home.component.scss'],
+ standalone: true,
+ imports: [BrowserAnimationsModule, HammerModule, IGX_CALENDAR_DIRECTIVES]
+ /* or imports: [BrowserAnimationsModule, HammerModule, IgxCalendarComponent] */
+})
+export class HomeComponent {}
+```
+
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxCalendarModule` をインポートします:
はタッチ操作の [`BrowserAnimationsModule`](https://angular.io/api/platform-browser/animations/BrowserAnimationsModule) と [`HammerModule`](https://angular.io/api/platform-browser/HammerModule) (**オプション**) に依存関係があり、これらも AppModule に追加する必要があります。
@@ -58,26 +83,9 @@ import { IgxCalendarModule } from 'igniteui-angular/calendar';
export class AppModule {}
```
-あるいは、`16.0.0` 以降、`IgxCalendarComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_CALENDAR_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/calendar/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
-
-```typescript
-// home.component.ts
-
-import { HammerModule } from '@angular/platform-browser';
-import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
-import { IGX_CALENDAR_DIRECTIVES } from 'igniteui-angular/calendar';
-// import { IGX_CALENDAR_DIRECTIVES } from '@infragistics/igniteui-angular'; for licensed package
-
-@Component({
- selector: 'app-home',
- template: ' ',
- styleUrls: ['home.component.scss'],
- standalone: true,
- imports: [BrowserAnimationsModule, HammerModule, IGX_CALENDAR_DIRECTIVES]
- /* or imports: [BrowserAnimationsModule, HammerModule, IgxCalendarComponent] */
-})
-export class HomeComponent {}
-```
+
+`IgxCalendarModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_CALENDAR_DIRECTIVES` または `IgxCalendarComponent` のインポートを使用してください。
+
Ignite UI for Angular Calendar モジュールまたはディレクティブをインポートしたので、`igx-calendar` コンポーネントの使用を開始できます。
diff --git a/docs/angular/src/content/jp/components/card.mdx b/docs/angular/src/content/jp/components/card.mdx
index 89638c1ff1..622a1adae1 100644
--- a/docs/angular/src/content/jp/components/card.mdx
+++ b/docs/angular/src/content/jp/components/card.mdx
@@ -36,32 +36,18 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxCardModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-...
-import { IgxCardModule } from 'igniteui-angular/card';
-// import { IgxCardModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxCardModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxCardComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_CARD_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/card/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxCardComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_CARD_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
-import { IGX_CARD_DIRECTIVES } from 'igniteui-angular/card';
-// import { IGX_CARD_DIRECTIVES } from '@infragistics/igniteui-angular'; for licensed package
+import { IGX_CARD_DIRECTIVES } from ‘igniteui-angular/card’;
+// import { IGX_CARD_DIRECTIVES } from ‘@infragistics/igniteui-angular’; for licensed package
@Component({
- selector: 'app-home',
+ selector: ‘app-home’,
template: `
@@ -88,7 +74,7 @@ import { IGX_CARD_DIRECTIVES } from 'igniteui-angular/card';
`,
- styleUrls: ['home.component.scss'],
+ styleUrls: [‘home.component.scss’],
standalone: true,
imports: [IGX_CARD_DIRECTIVES]
/* or imports: [IgxCardComponent,
@@ -106,6 +92,28 @@ import { IGX_CARD_DIRECTIVES } from 'igniteui-angular/card';
export class HomeComponent {}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxCardModule` をインポートします:
+
+```typescript
+// app.module.ts
+...
+import { IgxCardModule } from ‘igniteui-angular/card’;
+// import { IgxCardModule } from ‘@infragistics/igniteui-angular’; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxCardModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxCardModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_CARD_DIRECTIVES` または `IgxCardComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Card モジュールまたはディレクティブをインポートしたので、`igx-card` コンポーネントの使用を開始できます。
## Angular Card コンポーネントの使用
diff --git a/docs/angular/src/content/jp/components/carousel.mdx b/docs/angular/src/content/jp/components/carousel.mdx
index 93163eeb66..58cf6594dd 100644
--- a/docs/angular/src/content/jp/components/carousel.mdx
+++ b/docs/angular/src/content/jp/components/carousel.mdx
@@ -38,28 +38,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxCarouselModule` をインポートします。
+### スタンドアロン コンポーネント
-
-このコンポーネントは、**オプションで** [`HammerModule`](https://angular.io/api/platform-browser/HammerModule) を利用できます。タッチ操作が正しく動作するために、アプリケーションのルート モジュールにインポートできます。
-
-
-```typescript
-// app.module.ts
-
-import { HammerModule } from '@angular/platform-browser';
-import { IgxCarouselModule } from 'igniteui-angular/carousel';
-// import { IgxCarouselModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., HammerModule, IgxCarouselModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxCarouselComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_CAROUSEL_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/carousel/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxCarouselComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_CAROUSEL_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -87,6 +68,33 @@ import { IGX_CAROUSEL_DIRECTIVES } from 'igniteui-angular/carousel';
export class HomeComponent {}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxCarouselModule` をインポートします:
+
+
+このコンポーネントは、**オプションで** [`HammerModule`](https://angular.io/api/platform-browser/HammerModule) を利用できます。タッチ操作が正しく動作するために、アプリケーションのルート モジュールにインポートできます。
+
+
+```typescript
+// app.module.ts
+
+import { HammerModule } from '@angular/platform-browser';
+import { IgxCarouselModule } from 'igniteui-angular/carousel';
+// import { IgxCarouselModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., HammerModule, IgxCarouselModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxCarouselModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_CAROUSEL_DIRECTIVES` または `IgxCarouselComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Carousel モジュールまたはディレクティブをインポートしたので、`igx-carousel` コンポーネントの使用を開始できます。
## Angular Carousel コンポーネントの使用
@@ -1042,6 +1050,32 @@ The last step is to include the component's theme.
- [aria-labelledby](https://www.w3.org/TR/wai-aria/#aria-labelledby) は、`"tab-${this.index}-${this.total}"` のパターンに従います。
- [aria-selected](https://www.w3.org/TR/wai-aria-1.1/#aria-selected) は、**アクティブ** スライドを設定します。特定のスライド要素の現在の**選択された**状態を示します。
+
+## イベント
+
+| イベント | 説明 | キャンセル可能 |
+|--------|------|:----------:|
+| `slideChanged` | 現在のスライドが変わった後に発生します。`carousel` と `slide` を含む `ISlideEventArgs` を提供します。 | いいえ |
+| `slideAdded` | 新しいスライドがカルーセルに追加されたときに発生します。 | いいえ |
+| `slideRemoved` | スライドがカルーセルから削除されたときに発生します。 | いいえ |
+| `carouselPaused` | カルーセルの自動再生が一時停止されたときに発生します。 | いいえ |
+| `carouselPlaying` | カルーセルの自動再生が再開されたときに発生します。 | いいえ |
+
+```typescript
+import { ISlideEventArgs } from 'igniteui-angular/carousel';
+// import { ISlideEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onSlideChanged(args: ISlideEventArgs) {
+ console.log('アクティブなスライドのインデックス:', args.slide.index);
+}
+```
+
+```html
+
+
+
+```
+
## API リファレンス
diff --git a/docs/angular/src/content/jp/components/checkbox.mdx b/docs/angular/src/content/jp/components/checkbox.mdx
index 60378326b0..d84e0ae049 100644
--- a/docs/angular/src/content/jp/components/checkbox.mdx
+++ b/docs/angular/src/content/jp/components/checkbox.mdx
@@ -35,23 +35,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxCheckboxModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-
-import { IgxCheckboxModule } from 'igniteui-angular/checkbox';
-// import { IgxCheckboxModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxCheckboxModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxCheckboxComponent` をスタンドアロンの依存関係としてインポートできます。
+`16.0.0` 以降、`IgxCheckboxComponent` はスタンドアロン コンポーネントです。直接インポートしてください。
```typescript
// home.component.ts
@@ -73,6 +59,28 @@ import { IgxCheckboxComponent } from 'igniteui-angular/checkbox';
export class HomeComponent {}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxCheckboxModule` をインポートします:
+
+```typescript
+// app.module.ts
+
+import { IgxCheckboxModule } from 'igniteui-angular/checkbox';
+// import { IgxCheckboxModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxCheckboxModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxCheckboxModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IgxCheckboxComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Checkbox モジュールまたはコンポーネントをインポートしたので、`igx-checkbox` コンポーネントの使用を開始できます。
## Angular Checkbox コンポーネントの使用
@@ -222,6 +230,25 @@ public toggleAll() {
すべて設定できると、アプリケーションは以下のようになります。
+## イベント
+
+| イベント | 説明 | キャンセル可能 |
+|--------|------|:----------:|
+| `change` | チェック状態が変更されたときに発生します。`checked` と `value` を含む `IChangeCheckboxEventArgs` を提供します。 | いいえ |
+
+```typescript
+import { IChangeCheckboxEventArgs } from 'igniteui-angular/checkbox';
+// import { IChangeCheckboxEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onCheckboxChange(args: IChangeCheckboxEventArgs) {
+ console.log('チェック状態:', args.checked, '値:', args.value);
+}
+```
+
+```html
+Option 1
+```
+
## スタイル設定
### Checkbox テーマのプロパティ マップ
diff --git a/docs/angular/src/content/jp/components/chip.mdx b/docs/angular/src/content/jp/components/chip.mdx
index 8a87ee89e9..59127d2470 100644
--- a/docs/angular/src/content/jp/components/chip.mdx
+++ b/docs/angular/src/content/jp/components/chip.mdx
@@ -29,23 +29,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに **IgxChipsModule** をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-
-import { IgxChipsModule } from 'igniteui-angular/chips';
-// import { IgxChipsModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxChipsModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxChipComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_CHIPS_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/chips/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxChipComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_CHIPS_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -75,6 +61,28 @@ export class HomeComponent {
}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxChipsModule` をインポートします:
+
+```typescript
+// app.module.ts
+
+import { IgxChipsModule } from 'igniteui-angular/chips';
+// import { IgxChipsModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxChipsModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxChipsModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_CHIPS_DIRECTIVES` または `IgxChipComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Chips モジュールまたはディレクティブをインポートしたので、`igx-chip` コンポーネントの使用を開始できます。
## Angular Chip コンポーネントの使用
diff --git a/docs/angular/src/content/jp/components/circular-progress.mdx b/docs/angular/src/content/jp/components/circular-progress.mdx
index 450a89ccd8..7360cd504a 100644
--- a/docs/angular/src/content/jp/components/circular-progress.mdx
+++ b/docs/angular/src/content/jp/components/circular-progress.mdx
@@ -31,24 +31,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxProgressBarModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-
-...
-import { IgxProgressBarModule } from 'igniteui-angular/progressbar';
-// import { IgxProgressBarModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxProgressBarModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxCircularProgressBarComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_CIRCULAR_PROGRESS_BAR_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/progressbar/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxCircularProgressBarComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_CIRCULAR_PROGRESS_BAR_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -73,6 +58,29 @@ import { IGX_CIRCULAR_PROGRESS_BAR_DIRECTIVES } from 'igniteui-angular/progressb
export class HomeComponent {}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxProgressBarModule` をインポートします:
+
+```typescript
+// app.module.ts
+
+...
+import { IgxProgressBarModule } from 'igniteui-angular/progressbar';
+// import { IgxProgressBarModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxProgressBarModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxProgressBarModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_CIRCULAR_PROGRESS_BAR_DIRECTIVES` または `IgxCircularProgressBarComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Progress Bar モジュールまたはディレクティブをインポートしたので、`igx-circular-bar` コンポーネントの使用を開始できます。
## Angular Circular Progress の使用
diff --git a/docs/angular/src/content/jp/components/combo-features.mdx b/docs/angular/src/content/jp/components/combo-features.mdx
index f677f53d53..675a1673c4 100644
--- a/docs/angular/src/content/jp/components/combo-features.mdx
+++ b/docs/angular/src/content/jp/components/combo-features.mdx
@@ -28,7 +28,23 @@ Ignite UI for Angular ComboBox コントロールは、データと値のバイ
### はじめに
-コンボボックス コンポーネントを初期化にするには、まず `IgxComboModule` を **app.module.ts** ファイルにインポートします。サンプルは コンポーネントを使用してコンボボックスのプロパティの値をトグルしているため、`IgxSwitchModule` も必要です。
+コンボボックス コンポーネントを初期化するには、`IGX_COMBO_DIRECTIVES` をインポートします。サンプルは コンポーネントも使用するため、`IgxSwitchComponent` も必要です。
+
+```typescript
+import { IGX_COMBO_DIRECTIVES } from 'igniteui-angular/combo';
+import { IgxSwitchComponent } from 'igniteui-angular/switch';
+// import { IGX_COMBO_DIRECTIVES, IgxSwitchComponent } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-example',
+ standalone: true,
+ imports: [IGX_COMBO_DIRECTIVES, IgxSwitchComponent],
+ /* ... */
+})
+export class ExampleComponent {}
+```
+
+NgModule ベースのアプリケーションの場合:_
```typescript
import { IgxComboModule } from 'igniteui-angular/combo';
diff --git a/docs/angular/src/content/jp/components/combo-remote.mdx b/docs/angular/src/content/jp/components/combo-remote.mdx
index d68ff6b44f..7bc644fb8c 100644
--- a/docs/angular/src/content/jp/components/combo-remote.mdx
+++ b/docs/angular/src/content/jp/components/combo-remote.mdx
@@ -24,7 +24,22 @@ Ignite UI for Angular ComboBox コンポーネントは、コンボボックス
## 使用方法
-ComboBox コンポーネントを初期化にするには、まず `IgxComboModule` を **app.module.ts** ファイルにインポートします。デモではサーバー要求にリモート サービスを使用しているため、追加で `HttpClientModule` を含む必要があります。
+ComboBox コンポーネントを初期化するには、`IGX_COMBO_DIRECTIVES` をインポートします。デモではサーバー要求にリモート サービスを使用しているため、`HttpClientModule` も必要です。
+
+```typescript
+import { IGX_COMBO_DIRECTIVES } from 'igniteui-angular/combo';
+// import { IGX_COMBO_DIRECTIVES } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-example',
+ standalone: true,
+ imports: [IGX_COMBO_DIRECTIVES],
+ /* ... */
+})
+export class ExampleComponent {}
+```
+
+NgModule ベースのアプリケーションの場合:_
```typescript
import { IgxComboModule } from 'igniteui-angular/combo';
diff --git a/docs/angular/src/content/jp/components/combo-templates.mdx b/docs/angular/src/content/jp/components/combo-templates.mdx
index 5b238a790f..db6fd50c75 100644
--- a/docs/angular/src/content/jp/components/combo-templates.mdx
+++ b/docs/angular/src/content/jp/components/combo-templates.mdx
@@ -21,7 +21,22 @@ Ignite UI for Angular ComboBox コンポーネントでは、ヘッダー、フ
## 使用方法
-ComboBox コンポーネントを初期化にするには、まず `IgxComboModule` を **app.module.ts** ファイルにインポートします。
+ComboBox コンポーネントを初期化するには、`IGX_COMBO_DIRECTIVES` をインポートします。
+
+```typescript
+import { IGX_COMBO_DIRECTIVES } from 'igniteui-angular/combo';
+// import { IGX_COMBO_DIRECTIVES } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-example',
+ standalone: true,
+ imports: [IGX_COMBO_DIRECTIVES],
+ /* ... */
+})
+export class ExampleComponent {}
+```
+
+NgModule ベースのアプリケーションの場合:_
```typescript
import { IgxComboModule } from 'igniteui-angular/combo';
diff --git a/docs/angular/src/content/jp/components/combo.mdx b/docs/angular/src/content/jp/components/combo.mdx
index 144a1d82a5..21c8ae4ce6 100644
--- a/docs/angular/src/content/jp/components/combo.mdx
+++ b/docs/angular/src/content/jp/components/combo.mdx
@@ -50,23 +50,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxComboModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-import { IgxComboModule } from 'igniteui-angular/combo';
-// import { IgxComboModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- imports: [
- ...
- IgxComboModule,
- ...
- ]
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxComboComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_COMBO_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/combo/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxComboComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_COMBO_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -85,6 +71,28 @@ import { IGX_COMBO_DIRECTIVES } from 'igniteui-angular/combo';
export class HomeComponent {}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxComboModule` をインポートします:
+
+```typescript
+import { IgxComboModule } from 'igniteui-angular/combo';
+// import { IgxComboModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ imports: [
+ ...
+ IgxComboModule,
+ ...
+ ]
+})
+export class AppModule {}
+```
+
+
+`IgxComboModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_COMBO_DIRECTIVES` または `IgxComboComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Combo モジュールまたはディレクティブをインポートしたので、`igx-combo` コンポーネントの使用を開始できます。
## Angular ComboBox コンポーネントの使用
@@ -238,6 +246,39 @@ public singleSelection(event: IComboSelectionChangeEventArgs) {
> 注: igxCombo を変更する代わりに、[igxSimpleCombo](simple-combo.md) を使用することをお勧めします (上記を参照)。
+## イベント
+
+ComboBox コンポーネントは以下のイベントを発生します:
+
+| イベント | 説明 | キャンセル可能 |
+|--------|------|:----------:|
+| `opening` | ドロップダウンが開く前に発生します。 | はい |
+| `opened` | ドロップダウンが開き終わった後に発生します。 | いいえ |
+| `closing` | ドロップダウンが閉じる前に発生します。 | はい |
+| `closed` | ドロップダウンが閉じ終わった後に発生します。 | いいえ |
+| `selectionChanging` | 選択が変更される前に発生します。`oldValue`、`newValue`、`added`、および `removed` を提供します。 | はい |
+| `selectionChanged` | 選択が変更された後に発生します。`oldValue`、`newValue`、`added`、および `removed` を提供します。 | いいえ |
+
+キャンセル可能な `selectionChanging` イベントを使用して、特定のアイテムの選択を防ぐことができます。
+
+```typescript
+import { IComboSelectionChangingEventArgs } from 'igniteui-angular/combo';
+// import { IComboSelectionChangingEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onSelectionChanging(event: IComboSelectionChangingEventArgs) {
+ // 3 アイテム以上の選択を防止
+ if (event.newValue.length > 3) {
+ event.cancel = true;
+ }
+}
+```
+
+```html
+
+
+```
+
## キーボード ナビゲーション
diff --git a/docs/angular/src/content/jp/components/date-picker.mdx b/docs/angular/src/content/jp/components/date-picker.mdx
index d41c9175ad..df428c961b 100644
--- a/docs/angular/src/content/jp/components/date-picker.mdx
+++ b/docs/angular/src/content/jp/components/date-picker.mdx
@@ -34,27 +34,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxDatePickerModule` をインポートします。
+### スタンドアロン コンポーネント
-
-ピッカーが を使用し、タッチ操作のために **BrowserAnimationsModule** と **HammerModule** (**オプション**) に依存関係があり、これらもモジュールに追加する必要があります。
-
-
-```typescript
-import { HammerModule } from '@angular/platform-browser';
-import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
-import { IgxDatePickerModule } from 'igniteui-angular/date-picker';
-// import { IgxDatePickerModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxDatePickerModule, BrowserAnimationsModule, HammerModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxDatePickerComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_DATE_PICKER_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/date-picker/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxDatePickerComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_DATE_PICKER_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -79,6 +61,32 @@ import { IGX_DATE_PICKER_DIRECTIVES } from 'igniteui-angular/date-picker';
export class HomeComponent {}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxDatePickerModule` をインポートします:
+
+
+ピッカーが を使用し、タッチ操作のために **BrowserAnimationsModule** と **HammerModule** (**オプション**) に依存関係があり、これらもモジュールに追加する必要があります。
+
+
+```typescript
+import { HammerModule } from '@angular/platform-browser';
+import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
+import { IgxDatePickerModule } from 'igniteui-angular/date-picker';
+// import { IgxDatePickerModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxDatePickerModule, BrowserAnimationsModule, HammerModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxDatePickerModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_DATE_PICKER_DIRECTIVES` または `IgxDatePickerComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Date Picker モジュールまたはディレクティブをインポートしたので、`igx-date-picker` コンポーネントの使用を開始できます。
## Angular Date Picker コンポーネントの使用
@@ -283,6 +291,63 @@ IgxDatePicker と [`IgxTimePicker`](time-picker.md) を一緒に使用する場
+### 無効日付と特殊な日付
+
+ および 入力を使用して、カレンダー内の特定の日に印を付けます。どちらも `type` (`DateRangeType`) とオプションの `dateRange` 配列を持つ `DateRangeDescriptor` オブジェクトの配列を受け入れます。
+
+すべての週末と特定の日付を無効にする例:
+
+```typescript
+import { DateRangeDescriptor, DateRangeType } from 'igniteui-angular/core';
+// import { DateRangeDescriptor, DateRangeType } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({...})
+export class MyComponent {
+ public disabledDates: DateRangeDescriptor[] = [
+ { type: DateRangeType.Weekends },
+ { type: DateRangeType.Specific, dateRange: [new Date(2024, 11, 25)] }
+ ];
+}
+```
+
+```html
+
+ 日付を選択
+
+```
+
+
+`disabledDates` に含まれる範囲をユーザーが入力または選択した場合、ピッカーは `validationFailed` を発生させ、フォーム コントロールは `dateIsDisabled` エラーを報告します。
+
+
+### イベント
+
+| イベント | 説明 |
+|--------|------|
+| `valueChange` | 選択された日付が変更されたときに発生します。新しい `Date` 値を提供します。 |
+| `validationFailed` | ユーザーが無効な日付または `disabledDates` に含まれる日付を入力したときに発生します。`prevValue` と `currentValue` を提供します。 |
+
+```typescript
+import { IDatePickerValidationFailedEventArgs } from 'igniteui-angular/date-picker';
+// import { IDatePickerValidationFailedEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onValueChange(date: Date) {
+ console.log('選択された日付:', date);
+}
+
+public onValidationFailed(event: IDatePickerValidationFailedEventArgs) {
+ console.warn('無効な日付が入力されました。以前の値:', event.prevValue);
+}
+```
+
+```html
+
+ 日付を選択
+
+```
+
### カレンダー固有の設定
diff --git a/docs/angular/src/content/jp/components/date-range-picker.mdx b/docs/angular/src/content/jp/components/date-range-picker.mdx
index e9c815f1b3..d6f98f199c 100644
--- a/docs/angular/src/content/jp/components/date-range-picker.mdx
+++ b/docs/angular/src/content/jp/components/date-range-picker.mdx
@@ -31,28 +31,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックををご覧ください。
-次に、**app.module.ts** ファイルに `IgxDateRangePickerModule` をインポートします。
+### スタンドアロン コンポーネント
- は を使用しますが、タッチ操作のために **BrowserAnimationsModule** と**オプション**の **HammerModule** に依存関係があり、これらも `AppModule` に追加する必要があります。
-
-```typescript
-// app.module.ts
-
-import { IgxDateRangePickerModule } from 'igniteui-angular/date-range-picker';
-// import { IgxDateRangePickerModule } from '@infragistics/igniteui-angular'; for licensed package
-
-import { HammerModule } from '@angular/platform-browser';
-import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
-
-@NgModule({
- ...
- imports: [..., IgxDateRangePickerModule, BrowserAnimationsModule, HammerModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、 をスタンドアロンの依存関係としてインポートすることも、[`IGX_DATE_RANGE_PICKER_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/date-range-picker/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxDateRangePickerComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_DATE_RANGE_PICKER_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -73,6 +54,33 @@ import { IGX_DATE_RANGE_PICKER_DIRECTIVES } from 'igniteui-angular/date-range-pi
export class HomeComponent {}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxDateRangePickerModule` をインポートします:
+
+ は を使用しますが、タッチ操作のために **BrowserAnimationsModule** と**オプション**の **HammerModule** に依存関係があり、これらも `AppModule` に追加する必要があります。
+
+```typescript
+// app.module.ts
+
+import { IgxDateRangePickerModule } from 'igniteui-angular/date-range-picker';
+// import { IgxDateRangePickerModule } from '@infragistics/igniteui-angular'; for licensed package
+
+import { HammerModule } from '@angular/platform-browser';
+import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
+
+@NgModule({
+ ...
+ imports: [..., IgxDateRangePickerModule, BrowserAnimationsModule, HammerModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxDateRangePickerModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_DATE_RANGE_PICKER_DIRECTIVES` または `IgxDateRangePickerComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Date Range Picker モジュールまたはディレクティブをインポートしたので、`igx-date-range-picker` コンポーネントの使用を開始できます。
## Date Range Picker コンポーネントの使用
diff --git a/docs/angular/src/content/jp/components/date-time-editor.mdx b/docs/angular/src/content/jp/components/date-time-editor.mdx
index 395feffe94..92d8f9ee27 100644
--- a/docs/angular/src/content/jp/components/date-time-editor.mdx
+++ b/docs/angular/src/content/jp/components/date-time-editor.mdx
@@ -31,24 +31,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxDateTimeEditorModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-
-...
-import { IgxDateTimeEditorModule } from 'igniteui-angular/date-time-editor';
-// import { IgxDateTimeEditorModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxDateTimeEditorModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxDateTimeEditorDirective` をスタンドアロンの依存関係としてインポートできます。
+`16.0.0` 以降、`IgxDateTimeEditorDirective` はスタンドアロン ディレクティブです。直接インポートするか、`IGX_INPUT_GROUP_DIRECTIVES` トークンと一緒に使用してください。
```typescript
// home.component.ts
@@ -73,6 +58,29 @@ export class HomeComponent {
}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxDateTimeEditorModule` をインポートします:
+
+```typescript
+// app.module.ts
+
+...
+import { IgxDateTimeEditorModule } from 'igniteui-angular/date-time-editor';
+// import { IgxDateTimeEditorModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxDateTimeEditorModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxDateTimeEditorModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IgxDateTimeEditorDirective` のインポートを使用してください。
+
+
Ignite UI for Angular Date Time Editor モジュールまたはディレクティブをインポートしたので、`igxDateTimeEditor` ディレクティブの使用を開始できます。
## Ignite UI for Angular Date Time Editor ディレクティブの使用
@@ -238,6 +246,31 @@ Date Time Editor ディレクティブは、コア FormsModule [`NgModel`](https
コンポーネントが正しく動作するためには、 ディレクティブの後に を設定することが重要です。これは、両方のディレクティブが入力 `focus` イベントで動作するため、マスクが設定された後にテキスト選択が行われるからです。
+## イベント
+
+| イベント | 説明 | キャンセル可能 |
+|--------|------|:----------:|
+| `valueChange` | 値が変更されたときに発生します。新しい `Date` または `string` 値を提供します。 | いいえ |
+| `validationFailed` | 入力値が `minValue`/`maxValue` バリデーションに失敗したときに発生します。`oldValue`、`newValue`、および `userInput` を含む `IgxDateTimeEditorEventArgs` を提供します。 | いいえ |
+
+```typescript
+import { IgxDateTimeEditorEventArgs } from 'igniteui-angular/directives';
+// import { IgxDateTimeEditorEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onValidationFailed(args: IgxDateTimeEditorEventArgs) {
+ console.warn('無効な値が入力されました:', args.userInput, '以前の値:', args.oldValue);
+}
+```
+
+```html
+
+
+
+```
+
## スタイル設定
詳細については、[`Input Group スタイル ガイド`](input-group.md#スタイル設定)を参照してください。
diff --git a/docs/angular/src/content/jp/components/dialog.mdx b/docs/angular/src/content/jp/components/dialog.mdx
index ed5c00a319..9f714c7066 100644
--- a/docs/angular/src/content/jp/components/dialog.mdx
+++ b/docs/angular/src/content/jp/components/dialog.mdx
@@ -31,24 +31,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxDialogModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-
-...
-import { IgxDialogModule } from 'igniteui-angular/dialog';
-// import { IgxDialogModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxDialogModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxDialogComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_DIALOG_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/dialog/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxDialogComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_DIALOG_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -78,6 +63,29 @@ import { IgxRippleDirective } from 'igniteui-angular/directives';
export class HomeComponent {}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxDialogModule` をインポートします:
+
+```typescript
+// app.module.ts
+
+...
+import { IgxDialogModule } from 'igniteui-angular/dialog';
+// import { IgxDialogModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxDialogModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxDialogModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_DIALOG_DIRECTIVES` または `IgxDialogComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Dialog Window モジュールまたはディレクティブをインポートしたので、`igx-dialog` コンポーネントの使用を開始できます。
diff --git a/docs/angular/src/content/jp/components/divider.mdx b/docs/angular/src/content/jp/components/divider.mdx
index 2280af15b5..cc5d9c86c3 100644
--- a/docs/angular/src/content/jp/components/divider.mdx
+++ b/docs/angular/src/content/jp/components/divider.mdx
@@ -5,6 +5,7 @@ keywords: Ignite UI for Angular, UI コントロール, Angular ウィジェッ
license: MIT
_language: ja
---
+import { Aside } from '@astrojs/starlight/components';
import Sample from 'docs-template/components/mdx/Sample.astro';
import ApiLink from 'docs-template/components/mdx/ApiLink.astro';
@@ -30,24 +31,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxDividerModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-
-...
-import { IgxDividerModule } from 'igniteui-angular/directives';
-// import { IgxDividerModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxDividerModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxDividerDirective` をスタンドアロンの依存関係としてインポートできます。
+`16.0.0` 以降、`IgxDividerDirective` はスタンドアロン ディレクティブです。直接インポートしてください。
```typescript
// home.component.ts
@@ -65,6 +51,29 @@ import { IgxDividerDirective } from 'igniteui-angular/directives';
export class HomeComponent {}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxDividerModule` をインポートします:
+
+```typescript
+// app.module.ts
+
+...
+import { IgxDividerModule } from 'igniteui-angular/directives';
+// import { IgxDividerModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxDividerModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxDividerModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IgxDividerDirective` のインポートを使用してください。
+
+
Ignite UI for Angular Divider モジュールまたはディレクティブをインポートしたので、`igx-divider` コンポーネントの使用を開始できます。
## Angular Divider の使用
diff --git a/docs/angular/src/content/jp/components/drag-drop.mdx b/docs/angular/src/content/jp/components/drag-drop.mdx
index dd4f248bd5..5621701e80 100644
--- a/docs/angular/src/content/jp/components/drag-drop.mdx
+++ b/docs/angular/src/content/jp/components/drag-drop.mdx
@@ -33,24 +33,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxDragDropModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-
-...
-import { IgxDragDropModule } from 'igniteui-angular/directives';
-// import { IgxDragDropModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxDragDropModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxDragDirective` と `IgxDropDirective` をスタンドアロンの依存関係としてインポートすることも、[`IGX_DRAG_DROP_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/directives/drag-drop/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxDragDirective` と `IgxDropDirective` はスタンドアロン ディレクティブです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_DRAG_DROP_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -72,6 +57,29 @@ import { IGX_DRAG_DROP_DIRECTIVES } from 'igniteui-angular/directives';
export class HomeComponent {}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxDragDropModule` をインポートします:
+
+```typescript
+// app.module.ts
+
+...
+import { IgxDragDropModule } from 'igniteui-angular/directives';
+// import { IgxDragDropModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxDragDropModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxDragDropModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_DRAG_DROP_DIRECTIVES` または `IgxDragDirective`/`IgxDropDirective` のインポートを使用してください。
+
+
Ignite UI for Angular Drag and Drop モジュールまたはディレクティブをインポートしたので、`igxDrag` と `igxDrop` ディレクティブの使用を開始できます。
## Angular Drag ディレクティブの使用
diff --git a/docs/angular/src/content/jp/components/drop-down-virtual.mdx b/docs/angular/src/content/jp/components/drop-down-virtual.mdx
index dae2c4f67b..c6193c60e7 100644
--- a/docs/angular/src/content/jp/components/drop-down-virtual.mdx
+++ b/docs/angular/src/content/jp/components/drop-down-virtual.mdx
@@ -24,7 +24,22 @@ Ignite UI for Angular Drop Down コンポーネントは、選択可能な項目
### はじめに
仮想アイテムのリストを表示するようにドロップダウンを設定するには、いくつかの前提条件を満たす必要があります。
-はじめにドロップダウンを宣言するコンポーネントのモジュールに `IgxForOfModule` をインポートする必要があります。
+はじめにドロップダウンを宣言するコンポーネントに `IgxForOfDirective` をインポートする必要があります。
+
+```typescript
+import { IgxForOfDirective } from 'igniteui-angular/directives';
+// import { IgxForOfDirective } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-example',
+ standalone: true,
+ imports: [IgxForOfDirective],
+ /* ... */
+})
+export class ExampleComponent {}
+```
+
+NgModule ベースのアプリケーションの場合:_
```typescript
// app.module.ts
diff --git a/docs/angular/src/content/jp/components/drop-down.mdx b/docs/angular/src/content/jp/components/drop-down.mdx
index adb247832d..bfe1b64c77 100644
--- a/docs/angular/src/content/jp/components/drop-down.mdx
+++ b/docs/angular/src/content/jp/components/drop-down.mdx
@@ -33,24 +33,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxDropDownModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-
-...
-import { IgxDropDownModule } from 'igniteui-angular/drop-down';
-// import { IgxDropDownModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxDropDownModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxDropDownComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_DROP_DOWN_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/drop-down/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxDropDownComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_DROP_DOWN_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -85,6 +70,29 @@ import { IgxButtonDirective } from 'igniteui-angular/directives';
export class HomeComponent {}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxDropDownModule` をインポートします:
+
+```typescript
+// app.module.ts
+
+...
+import { IgxDropDownModule } from 'igniteui-angular/drop-down';
+// import { IgxDropDownModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxDropDownModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxDropDownModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_DROP_DOWN_DIRECTIVES` または `IgxDropDownComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Drop Down モジュールまたはディレクティブをインポートしたので、`igx-drop-down` コンポーネントの使用を開始できます。
## Angular Drop Down の使用
@@ -483,6 +491,39 @@ export class InputDropDownComponent {
```
+## イベント
+
+Drop Down コンポーネントは以下のイベントを発生します:
+
+| イベント | 説明 | キャンセル可能 |
+|--------|------|:----------:|
+| `opening` | ドロップダウンが開く前に発生します。 | はい |
+| `opened` | ドロップダウンが開き終わった後に発生します。 | いいえ |
+| `closing` | ドロップダウンが閉じる前に発生します。 | はい |
+| `closed` | ドロップダウンが閉じ終わった後に発生します。 | いいえ |
+| `selectionChanging` | 選択されたアイテムが変更される前に発生します。`oldSelection` と `newSelection` を提供します。 | はい |
+
+キャンセル可能な `selectionChanging` イベントを使用して、特定のアイテムの選択を防ぐことができます。
+
+```typescript
+import { ISelectionEventArgs } from 'igniteui-angular/drop-down';
+// import { ISelectionEventArgs } from '@infragistics/igniteui-angular'; for licensed package
+
+public onSelectionChanging(event: ISelectionEventArgs) {
+ if (event.newSelection?.disabled) {
+ event.cancel = true;
+ }
+}
+```
+
+```html
+
+
+ {{ item.field }}
+
+
+```
+
## スタイル設定
### Dropdown テーマのプロパティ マップ
diff --git a/docs/angular/src/content/jp/components/expansion-panel.mdx b/docs/angular/src/content/jp/components/expansion-panel.mdx
index 3070912c2f..355d3acef9 100644
--- a/docs/angular/src/content/jp/components/expansion-panel.mdx
+++ b/docs/angular/src/content/jp/components/expansion-panel.mdx
@@ -35,23 +35,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxExpansionPanelModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-...
-import { IgxExpansionPanelModule } from 'igniteui-angular/expansion-panel';
-// import { IgxExpansionPanelModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxExpansionPanelModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxExpansionPanelComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_EXPANSION_PANEL_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/expansion-panel/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxExpansionPanelComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_EXPANSION_PANEL_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -87,6 +73,28 @@ import { IGX_EXPANSION_PANEL_DIRECTIVES } from 'igniteui-angular/expansion-panel
export class HomeComponent {}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxExpansionPanelModule` をインポートします:
+
+```typescript
+// app.module.ts
+...
+import { IgxExpansionPanelModule } from 'igniteui-angular/expansion-panel';
+// import { IgxExpansionPanelModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxExpansionPanelModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxExpansionPanelModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_EXPANSION_PANEL_DIRECTIVES` または `IgxExpansionPanelComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Expansion Panel モジュールまたはディレクティブをインポートしたので、`igx-expansion-panel` コンポーネントの使用を開始できます。
## Angular Expansion Panel の使用
diff --git a/docs/angular/src/content/jp/components/for-of.mdx b/docs/angular/src/content/jp/components/for-of.mdx
index 20558e32e8..9b8e19554f 100644
--- a/docs/angular/src/content/jp/components/for-of.mdx
+++ b/docs/angular/src/content/jp/components/for-of.mdx
@@ -5,6 +5,7 @@ keywords: Angular Virtual ForOf ディレクティブ, ネイティブ Angular
license: MIT
_language: ja
---
+import { Aside } from '@astrojs/starlight/components';
import Sample from 'docs-template/components/mdx/Sample.astro';
import ApiLink from 'docs-template/components/mdx/ApiLink.astro';
@@ -30,25 +31,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxForOfModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-
-import { IgxForOfModule } from 'igniteui-angular/directives';
-// import { IgxForOfModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- imports: [
- ...
- IgxForOfModule,
- ...
- ]
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxForOfDirective` をスタンドアロンの依存関係としてインポートできます。
+`16.0.0` 以降、`IgxForOfDirective` はスタンドアロン ディレクティブです。直接インポートしてください。
```typescript
// home.component.ts
@@ -72,6 +57,30 @@ export class HomeComponent {
}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxForOfModule` をインポートします:
+
+```typescript
+// app.module.ts
+
+import { IgxForOfModule } from 'igniteui-angular/directives';
+// import { IgxForOfModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ imports: [
+ ...
+ IgxForOfModule,
+ ...
+ ]
+})
+export class AppModule {}
+```
+
+
+`IgxForOfModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IgxForOfDirective` のインポートを使用してください。
+
+
Ignite UI for Angular ForOf モジュールまたはディレクティブをインポートしたので、`igxFor` ディレクティブの使用を開始できます。
## Angular Virtual ForOf の使用
diff --git a/docs/angular/src/content/jp/components/general/how-to/how-to-customize-theme.mdx b/docs/angular/src/content/jp/components/general/how-to/how-to-customize-theme.mdx
index b09fba45a0..a3af54cb8f 100644
--- a/docs/angular/src/content/jp/components/general/how-to/how-to-customize-theme.mdx
+++ b/docs/angular/src/content/jp/components/general/how-to/how-to-customize-theme.mdx
@@ -269,7 +269,24 @@ $include: (
ご覧のとおり、スタイルのサイズは元のサイズのほぼ半分に削減されています。現時点ではかなり良いように見えますが、これをさらに削減することはできますか? はい、削減できます。スタイル サイズのほとんどは、スイート内の最大のコンポーネント (この場合、ビューの 1 つにある `IgxTreeGridComponent`) によって占められます。ただし、このコンポーネントは他のビューでは使用しません。`igx-tree-grid` を使用してビューを遅延ロード ルートにすることができ、そのルートにのみグリッドのテーマを含めることができるため、最上位の css をさらに小さくすることができます。これはどのように行われますか?
-まず、アプリの employees コンポーネントを含むフォルダに新しいモジュールと新しいルーティング モジュールを作成します。
+まず、アプリの employees コンポーネントを含むフォルダに新しいルーティング モジュールを作成します。
+
+```typescript
+import { IgxButtonDirective } from 'igniteui-angular/directives';
+import { IGX_COMBO_DIRECTIVES } from 'igniteui-angular/combo';
+import { IGX_TREE_GRID_DIRECTIVES } from 'igniteui-angular/grids/tree-grid';
+// import { IgxButtonDirective, IGX_COMBO_DIRECTIVES, IGX_TREE_GRID_DIRECTIVES } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-example',
+ standalone: true,
+ imports: [IgxButtonDirective, IGX_COMBO_DIRECTIVES, IGX_TREE_GRID_DIRECTIVES],
+ /* ... */
+})
+export class ExampleComponent {}
+```
+
+NgModule ベースのアプリケーションの場合:_
```typescript
// employees.module.ts
diff --git a/docs/angular/src/content/jp/components/grid/grid.mdx b/docs/angular/src/content/jp/components/grid/grid.mdx
index 5084099dcd..8bebdbb37e 100644
--- a/docs/angular/src/content/jp/components/grid/grid.mdx
+++ b/docs/angular/src/content/jp/components/grid/grid.mdx
@@ -70,10 +70,6 @@ Boston Marathon 2021 – この Angular グリッドの例では、ユーザー
## Ignite UI for Angular Data Grid を使用した作業の開始
-
-このコンポーネントは、**オプションで** [HammerModule](https://angular.io/api/platform-browser/HammerModule) を利用できます。タッチ操作が正しく動作するために、アプリケーションのルート モジュールにインポートできます。
-
-
Ignite UI for Angular Data Grid コンポーネントを使用した作業を開始するには、Ignite UI for Angular をインストールする必要があります。既存の Angular アプリケーションで、以下のコマンドを入力します。
```cmd
@@ -82,25 +78,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxGridModule` をインポートします。
-
-```typescript
-// app.module.ts
-
-import { IgxGridModule } from 'igniteui-angular/grids/grid';
-// import { IgxGridModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- imports: [
- ...
- IgxGridModule,
- ...
- ]
-})
-export class AppModule {}
-```
+### スタンドアロン コンポーネント
-あるいは、`16.0.0` 以降、`IgxGridComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_GRID_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/grids/grid/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxGridComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_GRID_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -121,6 +101,34 @@ export class HomeComponent {
}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxGridModule` をインポートします:
+
+
+このコンポーネントは、**オプションで** [HammerModule](https://angular.io/api/platform-browser/HammerModule) を利用できます。タッチ操作が正しく動作するために、アプリケーションのルート モジュールにインポートできます。
+
+
+```typescript
+// app.module.ts
+
+import { IgxGridModule } from 'igniteui-angular/grids/grid';
+// import { IgxGridModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ imports: [
+ ...
+ IgxGridModule,
+ ...
+ ]
+})
+export class AppModule {}
+```
+
+
+`IgxGridModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_GRID_DIRECTIVES` または `IgxGridComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Grid モジュールまたはディレクティブをインポートしたので、`igx-grid` コンポーネントの使用を開始できます。
## Using the Angular Data Grid
diff --git a/docs/angular/src/content/jp/components/hierarchicalgrid/hierarchical-grid.mdx b/docs/angular/src/content/jp/components/hierarchicalgrid/hierarchical-grid.mdx
index fb5fe0359f..2b964e1398 100644
--- a/docs/angular/src/content/jp/components/hierarchicalgrid/hierarchical-grid.mdx
+++ b/docs/angular/src/content/jp/components/hierarchicalgrid/hierarchical-grid.mdx
@@ -24,10 +24,6 @@ Ignite UI for Angular Hierarchical Data Grid は、階層表形式データの
## Ignite UI for Angular Hierarchical Data Grid を使用した作業の開始
-
-このコンポーネントは、**オプションで** [`HammerModule`](https://angular.io/api/platform-browser/HammerModule) を利用できます。タッチ操作が正しく動作するために、アプリケーションのルート モジュールにインポートできます。
-
-
Ignite UI for Angular Hierarchical Data Grid コンポーネントを使用した作業を開始するには、Ignite UI for Angular をインストールする必要があります。既存の Angular アプリケーションで、以下のコマンドを入力します。
```cmd
@@ -36,25 +32,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](../general/getting-started.md)」ピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxHierarchicalGridModule` をインポートします。
-
-```typescript
-// app.module.ts
-
-import { IgxHierarchicalGridModule } from 'igniteui-angular/grids/hierarchical-grid';
-// import { IgxHierarchicalGridModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- imports: [
- ...
- IgxHierarchicalGridModule,
- ...
- ]
-})
-export class AppModule {}
-```
+### スタンドアロン コンポーネント
-あるいは、`16.0.0` 以降、`IgxHierarchicalGridComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_HIERARCHICAL_GRID_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/grids/hierarchical-grid/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxHierarchicalGridComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_HIERARCHICAL_GRID_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -84,6 +64,34 @@ export class HomeComponent {
}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxHierarchicalGridModule` をインポートします:
+
+
+このコンポーネントは、**オプションで** [`HammerModule`](https://angular.io/api/platform-browser/HammerModule) を利用できます。タッチ操作が正しく動作するために、アプリケーションのルート モジュールにインポートできます。
+
+
+```typescript
+// app.module.ts
+
+import { IgxHierarchicalGridModule } from 'igniteui-angular/grids/hierarchical-grid';
+// import { IgxHierarchicalGridModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ imports: [
+ ...
+ IgxHierarchicalGridModule,
+ ...
+ ]
+})
+export class AppModule {}
+```
+
+
+`IgxHierarchicalGridModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_HIERARCHICAL_GRID_DIRECTIVES` または `IgxHierarchicalGridComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Hierarchical Grid モジュールまたはディレクティブをインポートしたので、`igx-hierarchical-grid` コンポーネントの使用を開始できます。
## Angular Hierarchical Data Grid の使用
diff --git a/docs/angular/src/content/jp/components/icon.mdx b/docs/angular/src/content/jp/components/icon.mdx
index 04c86fc4de..30430454a5 100644
--- a/docs/angular/src/content/jp/components/icon.mdx
+++ b/docs/angular/src/content/jp/components/icon.mdx
@@ -31,25 +31,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxIconModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-
-import { IgxIconModule } from 'igniteui-angular/icon';
-// import { IgxIconModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- imports: [
- ...
- IgxIconModule,
- ...
- ]
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxIconComponent` をスタンドアロンの依存関係としてインポートできます。
+`16.0.0` 以降、`IgxIconComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IgxIconComponent` トークンを使用してください。
```typescript
// home.component.ts
@@ -69,6 +53,30 @@ export class HomeComponent {
}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxIconModule` をインポートします:
+
+```typescript
+// app.module.ts
+
+import { IgxIconModule } from 'igniteui-angular/icon';
+// import { IgxIconModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ imports: [
+ ...
+ IgxIconModule,
+ ...
+ ]
+})
+export class AppModule {}
+```
+
+
+`IgxIconModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IgxIconComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Icon モジュールまたはコンポーネントをインポートしたので、`igx-icon` コンポーネントの使用を開始できます。
## Angular Icon の使用
diff --git a/docs/angular/src/content/jp/components/input-group.mdx b/docs/angular/src/content/jp/components/input-group.mdx
index 4c824ee260..4e1c5d18e9 100644
--- a/docs/angular/src/content/jp/components/input-group.mdx
+++ b/docs/angular/src/content/jp/components/input-group.mdx
@@ -29,26 +29,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxInputGroupModule` をインポートします。
+### スタンドアロン コンポーネント
-`IgxInputGroupComponent` はテンプレート駆動フォームを使用するために Angular **FormsModule** にも依存します。
-
-```typescript
-// app.module.ts
-
-import { FormsModule } from '@angular/forms';
-import { IgxInputGroupModule } from 'igniteui-angular/input-group';
-// import { IgxInputGroupModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxInputGroupModule, FormsModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxInputGroupComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_INPUT_GROUP_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/input-group/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxInputGroupComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_INPUT_GROUP_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -78,6 +61,31 @@ export class HomeComponent {
}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxInputGroupModule` をインポートします:
+
+`IgxInputGroupComponent` はテンプレート駆動フォームを使用するために Angular **FormsModule** にも依存します。
+
+```typescript
+// app.module.ts
+
+import { FormsModule } from '@angular/forms';
+import { IgxInputGroupModule } from 'igniteui-angular/input-group';
+// import { IgxInputGroupModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxInputGroupModule, FormsModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxInputGroupModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_INPUT_GROUP_DIRECTIVES` または `IgxInputGroupComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Input Group モジュールまたはディレクティブをインポートしたので、`igx-input-group` コンポーネントの使用を開始できます。
diff --git a/docs/angular/src/content/jp/components/label-input.mdx b/docs/angular/src/content/jp/components/label-input.mdx
index 2469994c7c..67050f9a33 100644
--- a/docs/angular/src/content/jp/components/label-input.mdx
+++ b/docs/angular/src/content/jp/components/label-input.mdx
@@ -29,24 +29,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxInputGroupModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-
-import { FormsModule } from '@angular/forms';
-import { IgxInputGroupModule } from 'igniteui-angular/input-group';
-// import { IgxInputGroupModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxInputGroupModule, FormsModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxLabelDirective`、`IgxInputDirective`、および `IgxInputGroupComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_INPUT_GROUP_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/input-group/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxInputGroupComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_INPUT_GROUP_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -73,6 +58,29 @@ export class HomeComponent {
}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxInputGroupModule` をインポートします:
+
+```typescript
+// app.module.ts
+
+import { FormsModule } from '@angular/forms';
+import { IgxInputGroupModule } from 'igniteui-angular/input-group';
+// import { IgxInputGroupModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxInputGroupModule, FormsModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxInputGroupModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_INPUT_GROUP_DIRECTIVES` または `IgxInputGroupComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Input Group モジュールまたはディレクティブをインポートしたので、`igxLabel` & `igxInput` ディレクティブおよび `igx-input-group` コンポーネントの使用を開始できます。
## Angular Label & Input の使用
diff --git a/docs/angular/src/content/jp/components/linear-progress.mdx b/docs/angular/src/content/jp/components/linear-progress.mdx
index 39d2c123c6..9628fac08d 100644
--- a/docs/angular/src/content/jp/components/linear-progress.mdx
+++ b/docs/angular/src/content/jp/components/linear-progress.mdx
@@ -31,24 +31,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxProgressBarModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-
-...
-import { IgxProgressBarModule } from 'igniteui-angular/progressbar';
-// import { IgxProgressBarModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxProgressBarModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxLinearProgressBarComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_LINEAR_PROGRESS_BAR_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/progressbar/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxLinearProgressBarComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_LINEAR_PROGRESS_BAR_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -69,6 +54,29 @@ export class HomeComponent {
}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxProgressBarModule` をインポートします:
+
+```typescript
+// app.module.ts
+
+...
+import { IgxProgressBarModule } from 'igniteui-angular/progressbar';
+// import { IgxProgressBarModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxProgressBarModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxProgressBarModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_LINEAR_PROGRESS_BAR_DIRECTIVES` または `IgxLinearProgressBarComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Progress Bar モジュールまたはディレクティブをインポートしたので、`igx-linear-bar` コンポーネントの使用を開始できます。
## Angular Linear Progress の使用
diff --git a/docs/angular/src/content/jp/components/list.mdx b/docs/angular/src/content/jp/components/list.mdx
index 9d5296c436..fb9fd54331 100644
--- a/docs/angular/src/content/jp/components/list.mdx
+++ b/docs/angular/src/content/jp/components/list.mdx
@@ -31,28 +31,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxListModule` をインポートします。
+### スタンドアロン コンポーネント
-
-このコンポーネントは、**オプションで** [`HammerModule`](https://angular.io/api/platform-browser/HammerModule) を利用できます。タッチ操作が正しく動作するために、アプリケーションのルート モジュールにインポートできます。
-
-
-```typescript
-// app.module.ts
-
-import { HammerModule } from '@angular/platform-browser';
-import { IgxListModule } from 'igniteui-angular/list';
-// import { IgxListModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxListModule, HammerModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxListComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_LIST_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/list/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxListComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_LIST_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -79,6 +60,33 @@ import { IGX_LIST_DIRECTIVES } from 'igniteui-angular/list';
export class HomeComponent {}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxListModule` をインポートします:
+
+
+このコンポーネントは、**オプションで** [`HammerModule`](https://angular.io/api/platform-browser/HammerModule) を利用できます。タッチ操作が正しく動作するために、アプリケーションのルート モジュールにインポートできます。
+
+
+```typescript
+// app.module.ts
+
+import { HammerModule } from '@angular/platform-browser';
+import { IgxListModule } from 'igniteui-angular/list';
+// import { IgxListModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxListModule, HammerModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxListModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_LIST_DIRECTIVES` または `IgxListComponent` のインポートを使用してください。
+
+
Ignite UI for Angular List モジュールまたはディレクティブをインポートしたので、`igx-list` コンポーネントの使用を開始できます。
## Angular List の使用
@@ -208,7 +216,24 @@ public contacts = [{
### アバターおよびアイコンの追加
-その他のコンポーネントを と共に使用してエクスペリエンスの向上や機能拡張が可能です。名前や電話番号の値の左に画像のアバターを表示できます。また、連絡先をお気に入りに追加するための星アイコンを右側に追加できます。要素を追加するには、[**IgxAvatar**](avatar.md) および [**IgxIcon**](icon.md) モジュールを app.module.ts ファイルにインポートします。
+その他のコンポーネントを と共に使用してエクスペリエンスの向上や機能拡張が可能です。名前や電話番号の値の左に画像のアバターを表示できます。また、連絡先をお気に入りに追加するための星アイコンを右側に追加できます。要素を追加するには、`IGX_LIST_DIRECTIVES`、`IgxAvatarComponent`、および `IgxIconComponent` をインポートします:
+
+```typescript
+import { IGX_LIST_DIRECTIVES } from 'igniteui-angular/list';
+import { IgxAvatarComponent } from 'igniteui-angular/avatar';
+import { IgxIconComponent } from 'igniteui-angular/icon';
+// import { IGX_LIST_DIRECTIVES, IgxAvatarComponent, IgxIconComponent } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-example',
+ standalone: true,
+ imports: [IGX_LIST_DIRECTIVES, IgxAvatarComponent, IgxIconComponent],
+ /* ... */
+})
+export class ExampleComponent {}
+```
+
+NgModule ベースのアプリケーションの場合:_
```typescript
// app.module.ts
@@ -294,12 +319,27 @@ toggleFavorite(item: IgxListItem) {
}
```
-また、`--ig-size` カスタム CSS プロパティを使用して、ユーザーがリストのサイズを選択できるようにすることができます。これには、`IgxButtonGroupModule` をインポートし、[**IgxButtonGroup**](button-group.md) を使用してすべてのサイズ値を表示します。このようにして、選択されるたびに、リストの**サイズ**が更新されます。
+また、`--ig-size` カスタム CSS プロパティを使用して、ユーザーがリストのサイズを選択できるようにすることができます。これには、`IGX_BUTTON_GROUP_DIRECTIVES` をインポートし、[**IgxButtonGroup**](button-group.md) を使用してすべてのサイズ値を表示します。このようにして、選択されるたびに、リストの**サイズ**が更新されます。
+
+```typescript
+import { IGX_BUTTON_GROUP_DIRECTIVES } from 'igniteui-angular/button-group';
+// import { IGX_BUTTON_GROUP_DIRECTIVES } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-example',
+ standalone: true,
+ imports: [IGX_BUTTON_GROUP_DIRECTIVES],
+ /* ... */
+})
+export class ExampleComponent {}
+```
+
+NgModule ベースのアプリケーションの場合:_
```typescript
// app.module.ts
...
-import { IgxButtonGroupModule } from 'igniteui-angular';
+import { IgxButtonGroupModule } from 'igniteui-angular/button-group';
// import { IgxButtonGroupModule } from '@infragistics/igniteui-angular'; for licensed package
@NgModule({
@@ -481,7 +521,23 @@ Angular コンポーネント テンプレートの上側に入力フィール
```
-`IgxFilterModule` および `IgxInputGroupModule` を app.module.ts ファイルにインポートし、 を連絡先コンポーネントにインポートします。
+`IgxFilterDirective`、`IGX_INPUT_GROUP_DIRECTIVES`、および を連絡先コンポーネントにインポートします:
+
+```typescript
+import { IgxFilterDirective } from 'igniteui-angular/directives';
+import { IGX_INPUT_GROUP_DIRECTIVES } from 'igniteui-angular/input-group';
+// import { IgxFilterDirective, IGX_INPUT_GROUP_DIRECTIVES } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-example',
+ standalone: true,
+ imports: [IgxFilterDirective, IGX_INPUT_GROUP_DIRECTIVES],
+ /* ... */
+})
+export class ExampleComponent {}
+```
+
+NgModule ベースのアプリケーションの場合:_
```typescript
// app.module.ts
diff --git a/docs/angular/src/content/jp/components/mask.mdx b/docs/angular/src/content/jp/components/mask.mdx
index 380c66df31..12c1d4b733 100644
--- a/docs/angular/src/content/jp/components/mask.mdx
+++ b/docs/angular/src/content/jp/components/mask.mdx
@@ -29,29 +29,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxMaskModule` と `IgxInputGroupModule` をインポートします。
+### スタンドアロン コンポーネント
-
- ディレクティブは、**text** タイプの入力で使用されます。
-
-
-```typescript
-// app.module.ts
-
-...
-import { IgxMaskModule } from 'igniteui-angular/input-group';
-import { IgxInputGroupModule } from 'igniteui-angular/input-group';
-// import { IgxMaskModule, IgxInputGroupModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxMaskModule, IgxInputGroupModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxMaskDirective` をスタンドアロンの依存関係としてインポートできます。
+`16.0.0` 以降、`IgxMaskDirective` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_INPUT_GROUP_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -77,6 +57,34 @@ import { IgxMaskDirective, IGX_INPUT_GROUP_DIRECTIVES } from 'igniteui-angular/i
export class HomeComponent {}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxMaskModule` をインポートします:
+
+
+ ディレクティブは、**text** タイプの入力で使用されます。
+
+
+```typescript
+// app.module.ts
+
+...
+import { IgxMaskModule } from 'igniteui-angular/input-group';
+import { IgxInputGroupModule } from 'igniteui-angular/input-group';
+// import { IgxMaskModule, IgxInputGroupModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxMaskModule, IgxInputGroupModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxMaskModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_INPUT_GROUP_DIRECTIVES` または `IgxMaskDirective` のインポートを使用してください。
+
+
Ignite UI for Angular Mask モジュールまたはディレクティブをインポートしたので、`igxMask` ディレクティブの使用を開始できます。
## Angular Mask の使用
@@ -204,7 +212,22 @@ private notify(snackbar, message, input) {
を使用して、フォーカスがあるコンポーネントにすべての入力テキストを選択させることができます。[Label および Input](label-input.md#フォーカスとテキストの選択) で `igxTextSelection` の詳細情報を参照してください。
-**app.module.ts** ファイルに `IgxTextSelectionModule` をインポートします:
+コンポーネントに `IgxTextSelectionDirective` をインポートします:
+
+```typescript
+import { IgxTextSelectionDirective } from 'igniteui-angular/directives';
+// import { IgxTextSelectionDirective } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-example',
+ standalone: true,
+ imports: [IgxTextSelectionDirective],
+ /* ... */
+})
+export class ExampleComponent {}
+```
+
+NgModule ベースのアプリケーションの場合:_
```typescript
...
diff --git a/docs/angular/src/content/jp/components/month-picker.mdx b/docs/angular/src/content/jp/components/month-picker.mdx
index 0f46365ce1..f9d51aceda 100644
--- a/docs/angular/src/content/jp/components/month-picker.mdx
+++ b/docs/angular/src/content/jp/components/month-picker.mdx
@@ -31,7 +31,32 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-はじめに、**app.module.ts** ファイルに `IgxCalendarModule` をインポートします。
+### スタンドアロン コンポーネント
+
+`16.0.0` 以降、`IgxMonthPickerComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_CALENDAR_DIRECTIVES` トークンを使用してください。
+
+```typescript
+// home.component.ts
+
+import { HammerModule } from '@angular/platform-browser';
+import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
+import { IgxMonthPickerComponent } from 'igniteui-angular/calendar';
+// import { IgxMonthPickerComponent } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-home',
+ template: ' ',
+ styleUrls: ['home.component.scss'],
+ standalone: true,
+ imports: [BrowserAnimationsModule, HammerModule, IgxMonthPickerComponent]
+ /* or imports: [BrowserAnimationsModule, HammerModule, IGX_CALENDAR_DIRECTIVES] */
+})
+export class HomeComponent {}
+```
+
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxCalendarModule` をインポートします:
はタッチ操作の [`BrowserAnimationsModule`](https://angular.io/api/platform-browser/animations/BrowserAnimationsModule) と [`HammerModule`](https://angular.io/api/platform-browser/HammerModule) (**オプション**) に依存関係があり、これらも AppModule に追加する必要があります。
@@ -53,26 +78,9 @@ import { IgxCalendarModule } from 'igniteui-angular/calendar';
export class AppModule {}
```
-あるいは、`16.0.0` 以降、`IgxMonthPickerComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_CALENDAR_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/calendar/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
-
-```typescript
-// home.component.ts
-
-import { HammerModule } from '@angular/platform-browser';
-import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
-import { IgxMonthPickerComponent } from 'igniteui-angular/calendar';
-// import { IgxMonthPickerComponent } from '@infragistics/igniteui-angular'; for licensed package
-
-@Component({
- selector: 'app-home',
- template: ' ',
- styleUrls: ['home.component.scss'],
- standalone: true,
- imports: [BrowserAnimationsModule, HammerModule, IgxMonthPickerComponent]
- /* or imports: [BrowserAnimationsModule, HammerModule, IGX_CALENDAR_DIRECTIVES] */
-})
-export class HomeComponent {}
-```
+
+`IgxCalendarModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IgxMonthPickerComponent` または `IGX_CALENDAR_DIRECTIVES` のインポートを使用してください。
+
Ignite UI for Angular Calendar モジュールまたは Month Picker コンポーネントをインポートしたので、`igx-month-picker` コンポーネントの使用を開始できます。
diff --git a/docs/angular/src/content/jp/components/navbar.mdx b/docs/angular/src/content/jp/components/navbar.mdx
index c45dada140..ddaedb5423 100644
--- a/docs/angular/src/content/jp/components/navbar.mdx
+++ b/docs/angular/src/content/jp/components/navbar.mdx
@@ -29,23 +29,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
- はじめに、**app.module.ts** ファイルに `IgxNavbarModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-
-import { IgxNavbarModule } from 'igniteui-angular/navbar';
-// import { IgxNavbarModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxNavbarModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxNavbarComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_NAVBAR_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/navbar/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxNavbarComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_NAVBAR_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -64,6 +50,28 @@ import { IGX_NAVBAR_DIRECTIVES } from 'igniteui-angular/navbar';
export class HomeComponent {}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxNavbarModule` をインポートします:
+
+```typescript
+// app.module.ts
+
+import { IgxNavbarModule } from 'igniteui-angular/navbar';
+// import { IgxNavbarModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxNavbarModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxNavbarModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_NAVBAR_DIRECTIVES` または `IgxNavbarComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Navbar モジュールまたはディレクティブをインポートしたので、`igx-navbar` コンポーネントの使用を開始できます。
## Angular Navbar の使用
@@ -92,7 +100,24 @@ Ignite UI for Angular Navbar モジュールまたはディレクティブをイ
### アイコン ボタンの追加
-検索、お気に入りなどのオプションを追加するには、[**IgxIconButton**](icon-button.md) と [**IgxIcon**](icon.md) モジュールを **app.module.ts** ファイルにインポートします。
+検索、お気に入りなどのオプションを追加するには、`IGX_NAVBAR_DIRECTIVES`、`IgxIconComponent`、および `IgxButtonDirective` をインポートします:
+
+```typescript
+import { IGX_NAVBAR_DIRECTIVES } from 'igniteui-angular/navbar';
+import { IgxIconComponent } from 'igniteui-angular/icon';
+import { IgxButtonDirective } from 'igniteui-angular/directives';
+// import { IGX_NAVBAR_DIRECTIVES, IgxIconComponent, IgxButtonDirective } from '@infragistics/igniteui-angular'; for licensed package
+
+@Component({
+ selector: 'app-example',
+ standalone: true,
+ imports: [IGX_NAVBAR_DIRECTIVES, IgxIconComponent, IgxButtonDirective],
+ /* ... */
+})
+export class ExampleComponent {}
+```
+
+NgModule ベースのアプリケーションの場合:_
```typescript
// app.module.ts
diff --git a/docs/angular/src/content/jp/components/navdrawer.mdx b/docs/angular/src/content/jp/components/navdrawer.mdx
index 61340374bf..e96d984f82 100644
--- a/docs/angular/src/content/jp/components/navdrawer.mdx
+++ b/docs/angular/src/content/jp/components/navdrawer.mdx
@@ -33,29 +33,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-はじめに、**app.module.ts** ファイルに `IgxNavigationDrawerModule` をインポートします。
+### スタンドアロン コンポーネント
-
- はタッチ操作の [`BrowserAnimationsModule`](https://angular.io/api/platform-browser/animations/BrowserAnimationsModule) と [`HammerModule`](https://angular.io/api/platform-browser/HammerModule) (**オプション**) に依存関係があり、これらも AppModule に追加する必要があります。
-
-
-```typescript
-// app.module.ts
-...
-import { HammerModule } from '@angular/platform-browser';
-import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
-import { IgxNavigationDrawerModule } from 'igniteui-angular/navigation-drawer';
-// import { IgxNavigationDrawerModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., BrowserAnimationsModule, HammerModule, IgxNavigationDrawerModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxNavigationDrawerComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_NAVIGATION_DRAWER_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/navigation-drawer/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxNavigationDrawerComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_NAVIGATION_DRAWER_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -104,6 +84,34 @@ export class HomeComponent {
}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxNavigationDrawerModule` をインポートします:
+
+
+ はタッチ操作の [`BrowserAnimationsModule`](https://angular.io/api/platform-browser/animations/BrowserAnimationsModule) と [`HammerModule`](https://angular.io/api/platform-browser/HammerModule) (**オプション**) に依存関係があり、これらも AppModule に追加する必要があります。
+
+
+```typescript
+// app.module.ts
+...
+import { HammerModule } from '@angular/platform-browser';
+import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
+import { IgxNavigationDrawerModule } from 'igniteui-angular/navigation-drawer';
+// import { IgxNavigationDrawerModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., BrowserAnimationsModule, HammerModule, IgxNavigationDrawerModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxNavigationDrawerModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_NAVIGATION_DRAWER_DIRECTIVES` または `IgxNavigationDrawerComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Navigation Drawer モジュールまたはディレクティブをインポートしたので、`igx-nav-drawer` コンポーネントの使用を開始できます。
## Angular Navigation Drawer の使用
@@ -448,6 +456,33 @@ export const menusRoutes: Routes = [
+## イベント
+
+| イベント | 説明 | キャンセル可能 |
+|--------|------|:----------:|
+| `opening` | ドロワーが開く前に発生します。 | いいえ |
+| `opened` | ドロワーが開き終わった後に発生します。 | いいえ |
+| `closing` | ドロワーが閉じる前に発生します。 | いいえ |
+| `closed` | ドロワーが閉じ終わった後に発生します。 | いいえ |
+| `pinChange` | ピン状態が変更されたときに発生します。`pin` の双方向バインディングをサポートします。 | いいえ |
+
+```typescript
+public onDrawerOpened() {
+ console.log('ナビゲーション ドロワーが開きました');
+}
+
+public onDrawerClosed() {
+ console.log('ナビゲーション ドロワーが閉じました');
+}
+```
+
+```html
+
+
+```
+
## スタイル設定
Navigation drawer のスタイル設定を始めるには、すべてのテーマ関数とコンポーネント ミックスインが存在する `index` ファイルをインポートする必要があります。
diff --git a/docs/angular/src/content/jp/components/paginator.mdx b/docs/angular/src/content/jp/components/paginator.mdx
index 51fbb3a5a1..b9396594db 100644
--- a/docs/angular/src/content/jp/components/paginator.mdx
+++ b/docs/angular/src/content/jp/components/paginator.mdx
@@ -5,6 +5,7 @@ keywords: angular paginator, angular paginator コンポーネント, angular ui
license: MIT
_language: ja
---
+import { Aside } from '@astrojs/starlight/components';
import Sample from 'docs-template/components/mdx/Sample.astro';
import ApiLink from 'docs-template/components/mdx/ApiLink.astro';
@@ -36,23 +37,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxPaginatorModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-
-import { IgxPaginatorModule } from 'igniteui-angular/paginator';
-// import { IgxPaginatorModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxPaginatorModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxPaginatorComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_PAGINATOR_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/paginator/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxPaginatorComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_PAGINATOR_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -83,6 +70,28 @@ export class HomeComponent {
}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxPaginatorModule` をインポートします:
+
+```typescript
+// app.module.ts
+
+import { IgxPaginatorModule } from 'igniteui-angular/paginator';
+// import { IgxPaginatorModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxPaginatorModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxPaginatorModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_PAGINATOR_DIRECTIVES` または `IgxPaginatorComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Paginator モジュールまたはディレクティブをインポートしたので、`igx-paginator` コンポーネントの使用を開始できます。
## Angular Paginator の使用
diff --git a/docs/angular/src/content/jp/components/pivotgrid/pivot-grid.mdx b/docs/angular/src/content/jp/components/pivotgrid/pivot-grid.mdx
index eadff19b1b..b0071968b9 100644
--- a/docs/angular/src/content/jp/components/pivotgrid/pivot-grid.mdx
+++ b/docs/angular/src/content/jp/components/pivotgrid/pivot-grid.mdx
@@ -39,25 +39,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](../general/getting-started.md)」 トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxPivotGridModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-
-import { IgxPivotGridModule } from 'igniteui-angular/grids/pivot-grid';
-// import { IgxPivotGridModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- imports: [
- ...
- IgxPivotGridModule,
- ...
- ]
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxPivotGridComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_PIVOT_GRID_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/grids/pivot-grid/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxPivotGridComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_PIVOT_GRID_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -81,6 +65,30 @@ export class HomeComponent {
}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxPivotGridModule` をインポートします:
+
+```typescript
+// app.module.ts
+
+import { IgxPivotGridModule } from 'igniteui-angular/grids/pivot-grid';
+// import { IgxPivotGridModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ imports: [
+ ...
+ IgxPivotGridModule,
+ ...
+ ]
+})
+export class AppModule {}
+```
+
+
+`IgxPivotGridModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_PIVOT_GRID_DIRECTIVES` または `IgxPivotGridComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Pivot Grid モジュールまたはディレクティブをインポートしたので、`igx-pivot-grid` コンポーネントの使用を開始できます。
## Angular Pivot Grid の使用
diff --git a/docs/angular/src/content/jp/components/query-builder.mdx b/docs/angular/src/content/jp/components/query-builder.mdx
index 95be6c1252..a9bf74f14b 100644
--- a/docs/angular/src/content/jp/components/query-builder.mdx
+++ b/docs/angular/src/content/jp/components/query-builder.mdx
@@ -37,23 +37,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxQueryBuilderModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-
-import { IgxQueryBuilderModule } from 'igniteui-angular/query-builder';
-// import { IgxQueryBuilderModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxQueryBuilderModule],
- ...
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxQueryBuilderComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_QUERY_BUILDER_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/query-builder/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxQueryBuilderComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_QUERY_BUILDER_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -86,6 +72,28 @@ export class HomeComponent {
}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxQueryBuilderModule` をインポートします:
+
+```typescript
+// app.module.ts
+
+import { IgxQueryBuilderModule } from 'igniteui-angular/query-builder';
+// import { IgxQueryBuilderModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxQueryBuilderModule],
+ ...
+})
+export class AppModule {}
+```
+
+
+`IgxQueryBuilderModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_QUERY_BUILDER_DIRECTIVES` または `IgxQueryBuilderComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Query Builder モジュールまたはディレクティブをインポートしたので、`igx-query-builder` コンポーネントの使用を開始できます。
## Angular Query Builder の使用
diff --git a/docs/angular/src/content/jp/components/radio-button.mdx b/docs/angular/src/content/jp/components/radio-button.mdx
index 5d7a818aff..1b9eac8feb 100644
--- a/docs/angular/src/content/jp/components/radio-button.mdx
+++ b/docs/angular/src/content/jp/components/radio-button.mdx
@@ -33,26 +33,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxRadioModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-
-...
-import { IgxRadioModule } from 'igniteui-angular/radio';
-// import { IgxRadioModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- ...
- imports: [..., IgxRadioModule],
- ...
-})
-export class AppModule {
- public selected: any;
-}
-```
-
-あるいは、`16.0.0` 以降、`IgxRadioGroupDirective` と `IgxRadioComponent` をスタンドアロンの依存関係としてインポートすることも、[`IGX_RADIO_GROUP_DIRECTIVES`](https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/directives/radio/public_api.ts) トークンを使用してコンポーネントとそのすべてのサポート コンポーネントおよびディレクティブをインポートすることもできます。
+`16.0.0` 以降、`IgxRadioGroupDirective` と `IgxRadioComponent` はスタンドアロン コンポーネントです。直接インポートするか、コンポーネントとそのすべてのサポート コンポーネントおよびディレクティブを含む `IGX_RADIO_GROUP_DIRECTIVES` トークンを使用してください。
```typescript
// home.component.ts
@@ -81,6 +64,31 @@ export class HomeComponent {
}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxRadioModule` をインポートします:
+
+```typescript
+// app.module.ts
+
+...
+import { IgxRadioModule } from 'igniteui-angular/radio';
+// import { IgxRadioModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ ...
+ imports: [..., IgxRadioModule],
+ ...
+})
+export class AppModule {
+ public selected: any;
+}
+```
+
+
+`IgxRadioModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IGX_RADIO_GROUP_DIRECTIVES` または `IgxRadioComponent` のインポートを使用してください。
+
+
Ignite UI for Angular Radio Button モジュールまたはディレクティブをインポートしたので、`igx-radio-group` ディレクティブと `igx-radio` コンポーネントの使用を開始できます。
## Angular Radio Button の使用
diff --git a/docs/angular/src/content/jp/components/rating.mdx b/docs/angular/src/content/jp/components/rating.mdx
index 34fac77528..bbd02d54a9 100644
--- a/docs/angular/src/content/jp/components/rating.mdx
+++ b/docs/angular/src/content/jp/components/rating.mdx
@@ -66,25 +66,7 @@ export class AppModule {}
## フォームで Angular Star Rating を使用する
-Angular フォームでは、多くの場合、コンポーネントはその値を `ngModel` にバインドしたり、Angular の `ControlValueAccessor` インターフェイスの実装を必要とする `formControl` を使用したりできる必要があります。Ignite UI for Angular パッケージは、要素セレクターを使用してサポートされているウェブ コンポーネントにアタッチするディレクティブの形式で、このような実装を提供します。現在、サポートされているコンポーネントは `IgcRating` のみです。ディレクティブを使用するには、ライブラリから `IgcFormsModule` をインポートするだけです。
-
-```typescript
-import { IgcFormsModule } from 'igniteui-angular/directives';
-// import { IgcFormsModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- imports: [
- IgcFormsModule
- ]
-})
-export class AppModule { }
-```
-
-
-`IgcFormsModule` をインポートして `ngModel` または `formControl` を使用する場合、Angular はカスタム `ControlValueAccessor` ディレクティブによって `igc-rating` タグを認識するため、`CUSTOM_ELEMENTS_SCHEMA` を含める必要はありません。
-
-
-あるいは、`16.0.0` 以降、`IgcFormControlDirective` をスタンドアロンの依存関係としてインポートできます。
+Angular フォームでは、多くの場合、コンポーネントはその値を `ngModel` にバインドしたり、Angular の `ControlValueAccessor` インターフェイスの実装を必要とする `formControl` を使用したりできる必要があります。Ignite UI for Angular パッケージは、要素セレクターを使用してサポートされているウェブ コンポーネントにアタッチするディレクティブの形式で、このような実装を提供します。現在、サポートされているコンポーネントは `IgcRating` のみです。ディレクティブを使用するには、ライブラリから `IgcFormControlDirective` をインポートします。
```typescript
// home.component.ts
@@ -105,6 +87,24 @@ export class HomeComponent {
}
```
+
+`IgcFormControlDirective` または `IgcFormsModule` をインポートして `ngModel` または `formControl` を使用する場合、Angular はカスタム `ControlValueAccessor` ディレクティブによって `igc-rating` タグを認識するため、`CUSTOM_ELEMENTS_SCHEMA` を含める必要はありません。
+
+
+NgModule ベースのアプリケーションの場合:_
+
+```typescript
+import { IgcFormsModule } from 'igniteui-angular/directives';
+// import { IgcFormsModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ imports: [
+ IgcFormsModule
+ ]
+})
+export class AppModule { }
+```
+
たとえば、値に ngModel を使用して評価を追加すると、問題なくモデルと双方向にバインドされます。
```html
diff --git a/docs/angular/src/content/jp/components/ripple.mdx b/docs/angular/src/content/jp/components/ripple.mdx
index 054df3eb5d..a6e1ee5b05 100644
--- a/docs/angular/src/content/jp/components/ripple.mdx
+++ b/docs/angular/src/content/jp/components/ripple.mdx
@@ -34,25 +34,9 @@ ng add igniteui-angular
Ignite UI for Angular については、「[はじめに](general/getting-started.md)」トピックをご覧ください。
-次に、**app.module.ts** ファイルに `IgxRippleModule` をインポートします。
+### スタンドアロン コンポーネント
-```typescript
-// app.module.ts
-
-import { IgxRippleModule } from 'igniteui-angular/directives';
-// import { IgxRippleModule } from '@infragistics/igniteui-angular'; for licensed package
-
-@NgModule({
- imports: [
- ...
- IgxRippleModule,
- ...
- ]
-})
-export class AppModule {}
-```
-
-あるいは、`16.0.0` 以降、`IgxRippleDirective` をスタンドアロンの依存関係としてインポートできます。
+`16.0.0` 以降、`IgxRippleDirective` はスタンドアロン ディレクティブです。直接インポートしてください。
```typescript
// home.component.ts
@@ -71,6 +55,30 @@ import { IgxButtonDirective } from 'igniteui-angular/button';
export class HomeComponent {}
```
+### NgModule (レガシー)
+
+NgModule を使用するアプリケーションの場合は、**app.module.ts** で `IgxRippleModule` をインポートします:
+
+```typescript
+// app.module.ts
+
+import { IgxRippleModule } from 'igniteui-angular/directives';
+// import { IgxRippleModule } from '@infragistics/igniteui-angular'; for licensed package
+
+@NgModule({
+ imports: [
+ ...
+ IgxRippleModule,
+ ...
+ ]
+})
+export class AppModule {}
+```
+
+
+`IgxRippleModule` は後方互換性のためにのみ保持されています。新しいプロジェクトでは、スタンドアロンの `IgxRippleDirective` のインポートを使用してください。
+
+
Ignite UI for Angular Ripple モジュールまたはディレクティブをインポートしたので、`igxRipple` ディレクティブの使用を開始できます。